Skip to content

Commit

Permalink
additionally use secretKeyId
Browse files Browse the repository at this point in the history
  • Loading branch information
btwonion committed May 10, 2024
1 parent 475a834 commit 1845ea8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ jobs:
NYON_PASSWORD: ${{ secrets.NYON_PASSWORD }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PRIVATE_KEY_PASSWORD: ${{ secrets.GPG_PRIVATE_KEY_PASSWORD }}
GPG_SECRET_KEY_ID: ${{ secrets.GPG_SECRET_KEY_ID }}
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,10 @@ kotlin {
}

signing {
val signingId = providers.environmentVariable("GPG_SECRET_KEY_ID").toString()
val signingKey = providers.environmentVariable("GPG_PRIVATE_KEY").toString()
val signingPassword = providers.environmentVariable("GPG_PRIVATE_KEY_PASSWORD").toString()
useInMemoryPgpKeys(signingKey, signingPassword)
useInMemoryPgpKeys(signingId, signingKey, signingPassword)

sign(publishing.publications)
}

0 comments on commit 1845ea8

Please sign in to comment.