diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5fdd1941..c8c9bc00 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,4 +52,7 @@ jobs: SONATYPE_PASS: ${{ secrets.SONATYPE_PASS }} GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} GPG_SIGNING_PASS: ${{ secrets.GPG_SIGNING_PASS }} + OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }} + OSSRH_TOKEN_PASSSWORD: ${{ secrets.OSSRH_TOKEN_PASSSWORD }} + run: ./gradlew publish diff --git a/publish/build.gradle b/publish/build.gradle index 5e1652d6..b3fb3024 100644 --- a/publish/build.gradle +++ b/publish/build.gradle @@ -42,8 +42,8 @@ publishing { url = System.getenv('SONATYPE_REPO_URL') credentials { - username = System.getenv('SONATYPE_USER') - password = System.getenv('SONATYPE_PASS') + username = System.getenv('OSSRH_TOKEN') + password = System.getenv('OSSRH_TOKEN_PASSSWORD') } } }