Bump actions/checkout from 4.1.7 to 4.2.0 (#7769) #363
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: Snapshot | |
on: | |
push: | |
branches: [ '3.x' ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: github.repository == 'ReactiveX/RxJava' | |
permissions: | |
contents: write | |
env: | |
# ------------------------------------------------------------------------------ | |
CI_BUILD_NUMBER: ${{ github.run_number }} | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0 | |
with: | |
distribution: 'zulu' | |
java-version: '8' | |
- name: Cache Gradle packages | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.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: Build RxJava | |
run: ./gradlew build --stacktrace --no-daemon | |
- name: Upload Snapshot | |
run: ./gradlew -PreleaseMode=branch 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 }} | |
- name: Upload to Codecov | |
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 | |
- name: Push Javadoc | |
run: ./push_javadoc.sh | |
# Define secrets at https://github.com/ReactiveX/RxJava/settings/secrets/actions | |
# ------------------------------------------------------------------------------ | |
env: | |
JAVADOCS_TOKEN: ${{ secrets.JAVADOCS_TOKEN }} |