Skip to content

Commit

Permalink
Update to user tokens
Browse files Browse the repository at this point in the history
Per https://central.sonatype.org/news/20240301_changes_to_account_management/#new-publishers-who-will-be-publishing-via-ossrh
(and because we got a 401 error publishing the old way), we now have to use user tokens to publish.

I followed the instructions here: https://central.sonatype.org/publish/generate-portal-token/ and generated a token
username/password pair, which I added to the 1Password entry for Sonatype, and to Github actions secrets.

I think this yml update will cause the publish action to use the new things.
  • Loading branch information
sourada-e5 committed Nov 14, 2024
1 parent 3b85f55 commit 6c3d1a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
./gradlew \
-P signingKey=${{ secrets.ORG_GRADLE_PROJECT_signingKey }} \
-P signingPassword=${{ secrets.ORG_GRADLE_PROJECT_signingPassword }} \
-P sonatypeUsername=${{ secrets.SONATYPE_USERNAME }} \
-P sonatypePassword=${{ secrets.SONATYPE_PASSWORD }} \
-P ossrhUsername=${{ secrets.OSSRH_USERNAME }} \
-P ossrhPassword=${{ secrets.OSSRH_PASSWORD }} \
publishToSonatype \
closeAndReleaseSonatypeStagingRepository
./scripts/publish.sh

0 comments on commit 6c3d1a1

Please sign in to comment.