From 1288f119a847e7a203a380931ec7cfad4bc68042 Mon Sep 17 00:00:00 2001 From: SpaiR Date: Fri, 29 Sep 2023 12:40:19 +0300 Subject: [PATCH] build: add signing key password --- .github/workflows/ci.yml | 1 + publish.gradle | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64be0aa1..b9dbd46b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/publish.gradle b/publish.gradle index bd3e082c..2d6d1c37 100644 --- a/publish.gradle +++ b/publish.gradle @@ -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 } }