Skip to content

Commit

Permalink
fix: add correct signing keys for maven package in HL
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Ribó <[email protected]>
  • Loading branch information
elribonazo committed Jul 11, 2024
1 parent 33f4e77 commit d560f5a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
SONATYPE_USERNAME: ${{ secrets.OSSRH_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
SONATYPE_GPG_SECRET: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
SONATYPE_GPG_PASSWORD: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}

on:
workflow_dispatch:
Expand Down Expand Up @@ -125,6 +127,8 @@ jobs:
GIT_COMMITTER_NAME: ${{ steps.import_gpg.outputs.name }}
SONATYPE_USERNAME: ${{ env.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ env.SONATYPE_PASSWORD }}
SONATYPE_GPG_SECRET: ${{ env.SONATYPE_GPG_SECRET }}
SONATYPE_GPG_PASSWORD: ${{ env.SONATYPE_GPG_PASSWORD }}
run: |
npm install
npx semantic-release
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ allprojects {
name = "OSSRH"
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = project.findProperty("ossrhUsername") as String? ?: System.getenv("OSSRH_USERNAME")
password = project.findProperty("ossrhToken") as String? ?: System.getenv("OSSRH_TOKEN")
username = project.findProperty("sonatypeUsername") as String? ?: System.getenv("SONATYPE_USERNAME")
password = project.findProperty("sonatypePassword") as String? ?: System.getenv("SONATYPE_PASSWORD")
}
}
}
Expand Down Expand Up @@ -132,8 +132,8 @@ allprojects {

signing {
useInMemoryPgpKeys(
project.findProperty("signing.signingSecretKey") as String? ?: System.getenv("SIGNING_SECRET_KEY"),
project.findProperty("signing.signingSecretKeyPassword") as String? ?: System.getenv("SIGNING_SECRET_KEY_PASSWORD")
project.findProperty("signing.signingSecretKey") as String? ?: System.getenv("SONATYPE_GPG_SECRET"),
project.findProperty("signing.signingSecretKeyPassword") as String? ?: System.getenv("SONATYPE_GPG_PASSWORD")
)
sign(this@withType)
}
Expand Down

0 comments on commit d560f5a

Please sign in to comment.