Skip to content

Commit

Permalink
Start using tokens to publish new artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
mert.yuksel committed Jun 26, 2024
1 parent 5ff37c9 commit cdb9460
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
env:
SIGNING_KEY: ${{ secrets.SONARTYPE_GPG_PRIVATE_KEY }}
SIGNING_PASSWORD: ${{ secrets.SONARTYPE_GPG_PASSPHRASE }}
OSSRH_USERNAME: ${{ secrets.SONARTYPE_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.SONARTYPE_PASSWORD }}
OSSRH_TOKEN: ${{ secrets.SONATYPE_TOKEN }}
OSSRH_TOKEN_PASSWORD: ${{ secrets.SONATYPE_TOKEN_PASSWORD }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
SIGNING_KEY_ID: ${{ secrets.SONATYPE_SIGNING_KEY_ID }}
8 changes: 4 additions & 4 deletions scripts/publish-root.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
ext["signing.keyId"] = System.getenv('SIGNING_KEY_ID')
ext["signing.password"] = System.getenv('SIGNING_PASSWORD')
ext["signing.key"] = System.getenv('SIGNING_KEY')
ext["ossrhUsername"] = System.getenv('OSSRH_USERNAME')
ext["ossrhPassword"] = System.getenv('OSSRH_PASSWORD')
ext["sonatypeStagingProfileId"] = System.getenv('SONATYPE_STAGING_PROFILE_ID')
ext["ossrhToken"] = System.getenv('OSSRH_TOKEN')
ext["ossrhTokenPassword"] = System.getenv('OSSRH_TOKEN_PASSWORD')

nexusPublishing {
repositories {
sonatype {
stagingProfileId = sonatypeStagingProfileId
username = ossrhUsername
password = ossrhPassword
username = ossrhToken
password = ossrhTokenPassword

nexusUrl.set(uri("https://oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://oss.sonatype.org/content/repositories/snapshots/"))
Expand Down

0 comments on commit cdb9460

Please sign in to comment.