Skip to content

Commit

Permalink
Add Sonatype user access token information to publish process (#496)
Browse files Browse the repository at this point in the history
Add Sonatype user access token information to publish process to fix broken publishing jobs
  • Loading branch information
wrigleyDan authored Jul 5, 2024
1 parent a9d60a3 commit 87b7624
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions publish/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}
}
Expand Down

0 comments on commit 87b7624

Please sign in to comment.