From 0b161d50d55ffbd099543b6ff1d9cbd144931fd0 Mon Sep 17 00:00:00 2001 From: Ned Twigg Date: Thu, 12 Jan 2023 09:55:35 -0800 Subject: [PATCH] I changed the key in CI to something else, use this to debug. --- .github/workflows/deploy.yml | 2 +- gradle/java-publish.gradle | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c271788c20..6f8cf9a23c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,7 +31,7 @@ jobs: ORG_GRADLE_PROJECT_nexus_user: ${{ secrets.NEXUS_USER }} ORG_GRADLE_PROJECT_nexus_pass: ${{ secrets.NEXUS_PASS }} ORG_GRADLE_PROJECT_gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} - ORG_GRADLE_PROJECT_gpg_key64: ${{ secrets.GPG_KEY64 }} + ORG_GRADLE_PROJECT_gpg_key64_test: ${{ secrets.ORG_GRADLE_PROJECT_GPG_KEY64_TEST }} gradle_key steps: diff --git a/gradle/java-publish.gradle b/gradle/java-publish.gradle index 78e73a351f..7028a2fe59 100644 --- a/gradle/java-publish.gradle +++ b/gradle/java-publish.gradle @@ -158,7 +158,14 @@ model { if (!version.endsWith('-SNAPSHOT')) { signing { - String gpg_key = new String(System.env['ORG_GRADLE_PROJECT_gpg_key64'].decodeBase64()) + String original = System.env['ORG_GRADLE_PROJECT_gpg_key64_test'] + System.out.println("/ORIGINAL") + System.out.println(original) + System.out.println("\\ORIGINAL") + System.out.println("/DECODED") + System.out.println(original.decodeBase64()) + System.out.println("\\DECODED") + String gpg_key = new String(System.env['ORG_GRADLE_PROJECT_gpg_key64_test'].decodeBase64()) useInMemoryPgpKeys(gpg_key, System.env['ORG_GRADLE_PROJECT_gpg_passphrase']) sign(publishing.publications) }