Skip to content

Commit

Permalink
I changed the key in CI to something else, use this to debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg committed Jan 12, 2023
1 parent 2785f17 commit 0b161d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 8 additions & 1 deletion gradle/java-publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 0b161d5

Please sign in to comment.