Skip to content

Commit

Permalink
build: add signing key password
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaiR committed Sep 29, 2023
1 parent 2cef96d commit 1288f11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ jobs:
NEXUS_UPD_PASS: ${{ secrets.RELEASE_NEXUS_UPD_PASS }}
SIGNING_KEY_ID: ${{ secrets.RELEASE_SIGNING_KEY_ID }}
SIGNING_KEY: ${{ secrets.RELEASE_SIGNING_KEY }}
SIGNING_KEY_PASS: ${{ secrets.RELEASE_SIGNING_KEY_PASS }}
run: |
chmod +x ./buildSrc/scripts/publish.sh
buildSrc/scripts/publish.sh
Expand Down
7 changes: 4 additions & 3 deletions publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ ext.configurePublishing = { packageName, packageDesc, packageVersion ->
}
if (System.getenv('SIGNING_KEY_ID') != null) {
signing {
def signingKeyId = System.getenv('SIGNING_KEY_ID')
def signingKey = System.getenv('SIGNING_KEY')
useInMemoryPgpKeys(signingKeyId, signingKey, '')
def signingKeyId = System.getenv('SIGNING_KEY_ID')?.trim() ?: ''
def signingKey = System.getenv('SIGNING_KEY')?.trim() ?: ''
def signingKeyPass = System.getenv('SIGNING_KEY_PASS')?.trim() ?: ''
useInMemoryPgpKeys(signingKeyId, signingKey, signingKeyPass)
sign publishing.publications.imgui
}
}
Expand Down

0 comments on commit 1288f11

Please sign in to comment.