diff --git a/.github/workflows/publish-github.yml b/.github/workflows/publish-github.yml index b73781b5ee..f76219c6fd 100644 --- a/.github/workflows/publish-github.yml +++ b/.github/workflows/publish-github.yml @@ -24,13 +24,9 @@ jobs: distribution: 'adopt' server-id: github settings-path: ${{ github.workspace }} + - name: Set up Gradle + uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0 - name: Publish env: - ORG_GRADLE_PROJECT_mavenUser: ${{ github.actor }} - ORG_GRADLE_PROJECT_mavenPassword: ${{ secrets.GITHUB_TOKEN }} - ORG_GRADLE_PROJECT_SIGNINGKEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }} - ORG_GRADLE_PROJECT_SIGNINGPASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }} - run: >- - ./gradlew publish - -PmavenReleaseRepo="https://maven.pkg.github.com/mozilla/rhino" - -PmavenSnapshotRepo="https://maven.pkg.github.com/mozilla/rhino" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: ./gradlew publish