Skip to content

Commit

Permalink
Use Sonatype token authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
rtyley committed Jan 16, 2024
1 parent aeed857 commit ddf4ce5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:

jobs:
release:
uses: guardian/gha-scala-library-release-workflow/.github/workflows/reusable-release.yml@give-earlier-warning-when-pgp-key-misconfigured
uses: guardian/gha-scala-library-release-workflow/.github/workflows/reusable-release.yml@use-sonatype-token-rather-than-username-password-auth
permissions: { contents: write, pull-requests: write }
with:
SONATYPE_PROFILE_NAME: 'com.madgag'
SONATYPE_CREDENTIAL_HOST: 's01.oss.sonatype.org'
SONATYPE_USERNAME: 'roberto'
secrets:
SONATYPE_PASSWORD: ${{ secrets.AUTOMATED_MAVEN_RELEASE_SONATYPE_PASSWORD }}
SONATYPE_TOKEN_USERNAME: ${{ secrets.AUTOMATED_MAVEN_RELEASE_SONATYPE_TOKEN_USERNAME }}
SONATYPE_TOKEN_PASSWORD: ${{ secrets.AUTOMATED_MAVEN_RELEASE_SONATYPE_TOKEN_PASSWORD }}
PGP_PRIVATE_KEY: ${{ secrets.AUTOMATED_MAVEN_RELEASE_PGP_SECRET }}

0 comments on commit ddf4ce5

Please sign in to comment.