diff --git a/.github/workflows/ossrh.yml b/.github/workflows/ossrh.yml index 47ef39f..4a3f8a8 100644 --- a/.github/workflows/ossrh.yml +++ b/.github/workflows/ossrh.yml @@ -13,11 +13,20 @@ jobs: runs-on: ubuntu-latest environment: deploy steps: - - uses: actions/checkout@v2 - - uses: gradle/wrapper-validation-action@v1 - - uses: actions/setup-java@v1 + - name: Fetch Sources + uses: actions/checkout@v4 with: - java-version: 11 + fetch-depth: 0 + + - name: Validate Gradle Wrapper + uses: gradle/actions/wrapper-validation@v3 + + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: zulu + java-version: 21 + - name: Deploy artifacts env: ORG_GRADLE_PROJECT_repositoryUsername: ${{ secrets.OSSRH_USERNAME }} @@ -27,6 +36,7 @@ jobs: run: | cat libpng_version | xargs ./download_libpng_and_apply_apng_patch.sh ./gradlew publish + - name: Release to Maven Central if: ${{ github.event.inputs.cond_release == 'release' }} env: