v3.1.8 #33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a Java project with Gradle | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: Release | |
on: | |
release: | |
types: [ released, prereleased ] | |
branches: [ '3.x' ] | |
tags: | |
- 'v3.*.*' | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
env: | |
CI_BUILD_NUMBER: ${{ github.run_number }} | |
steps: | |
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0 | |
with: | |
distribution: 'zulu' | |
java-version: '8' | |
- name: Cache Gradle packages | |
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle-${{ secrets.CACHE_VERSION }} | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Grant execute permission for push | |
run: chmod +x push_javadoc.sh | |
- name: Extract version tag | |
run: echo "BUILD_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV | |
- name: Build RxJava | |
run: ./gradlew build --stacktrace --no-daemon | |
- name: Upload to Codecov | |
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 | |
- name: Upload release | |
run: ./gradlew -PreleaseMode=full publish --no-daemon --no-parallel --stacktrace | |
env: | |
# Define secrets at https://github.com/ReactiveX/RxJava/settings/secrets/actions | |
# ------------------------------------------------------------------------------ | |
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USER }} | |
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }} | |
ORG_GRADLE_PROJECT_SIGNING_PRIVATE_KEY: ${{ secrets.SIGNING_PRIVATE_KEY }} | |
ORG_GRADLE_PROJECT_SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | |
- name: Publish release | |
run: ./gradlew -PreleaseMode=full closeAndReleaseRepository --no-daemon --no-parallel --stacktrace | |
env: | |
# Define secrets at https://github.com/ReactiveX/RxJava/settings/secrets/actions | |
# ------------------------------------------------------------------------------ | |
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USER }} | |
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }} | |
- name: Push Javadoc | |
run: ./push_javadoc.sh | |
env: | |
# Define secrets at https://github.com/ReactiveX/RxJava/settings/secrets/actions | |
# ------------------------------------------------------------------------------ | |
JAVADOCS_TOKEN: ${{ secrets.JAVADOCS_TOKEN }} |