diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 84c9d4688..b2d519813 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,12 +13,13 @@ jobs: name: Build with Java 12 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Set up JDK 12 - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: 'zulu' java-version: 12 - name: Grant execute permission for gradlew run: chmod +x gradlew @@ -29,21 +30,20 @@ jobs: needs: [java12] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v2 with: + distribution: 'zulu' java-version: 12 - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Release - run: ./gradlew release -Prelease.disableChecks -Prelease.pushTagsOnly -Prelease.customUsername=${{ github.actor }} -Prelease.customPassword=${{ github.token }} + run: ./gradlew clean publishToSonatype closeAndReleaseSonatypeStagingRepository env: ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNINGKEY }} ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.SIGNINGKEYID }} ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNINGPASSWORD }} ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.OSSRH_USERNAME }} ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.OSSRH_PASSWORD }} - -