Skip to content

Commit 1288f11

Browse files
committed
build: add signing key password
1 parent 2cef96d commit 1288f11

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ jobs:
172172
NEXUS_UPD_PASS: ${{ secrets.RELEASE_NEXUS_UPD_PASS }}
173173
SIGNING_KEY_ID: ${{ secrets.RELEASE_SIGNING_KEY_ID }}
174174
SIGNING_KEY: ${{ secrets.RELEASE_SIGNING_KEY }}
175+
SIGNING_KEY_PASS: ${{ secrets.RELEASE_SIGNING_KEY_PASS }}
175176
run: |
176177
chmod +x ./buildSrc/scripts/publish.sh
177178
buildSrc/scripts/publish.sh

publish.gradle

+4-3
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ ext.configurePublishing = { packageName, packageDesc, packageVersion ->
6060
}
6161
if (System.getenv('SIGNING_KEY_ID') != null) {
6262
signing {
63-
def signingKeyId = System.getenv('SIGNING_KEY_ID')
64-
def signingKey = System.getenv('SIGNING_KEY')
65-
useInMemoryPgpKeys(signingKeyId, signingKey, '')
63+
def signingKeyId = System.getenv('SIGNING_KEY_ID')?.trim() ?: ''
64+
def signingKey = System.getenv('SIGNING_KEY')?.trim() ?: ''
65+
def signingKeyPass = System.getenv('SIGNING_KEY_PASS')?.trim() ?: ''
66+
useInMemoryPgpKeys(signingKeyId, signingKey, signingKeyPass)
6667
sign publishing.publications.imgui
6768
}
6869
}

0 commit comments

Comments
 (0)