Skip to content

Commit

Permalink
Trying 2x encode
Browse files Browse the repository at this point in the history
  • Loading branch information
deusaquilus committed Feb 2, 2024
1 parent c3fe993 commit 5049f3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
SONATYPE_REPOSITORY_ID: ${{ needs.create_staging_repository.outputs.repository-id }}
SONATYPE_USERNAME: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEUSERNAME }}
SONATYPE_PASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEPASSWORD }}
GPG_PRIVATE_KEY: ${{ secrets.SIGNING_KEY_ID }}
GPG_PRIVATE_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
NEW_SIGNING_KEY_ID_BASE64: ${{ secrets.NEW_SIGNING_KEY_ID_BASE64 }}
NEW_SIGNING_KEY_ID_BASE64_PASS: ${{ secrets.NEW_SIGNING_KEY_ID_BASE64_PASS }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
Expand Down
7 changes: 5 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,12 @@ subprojects {
}

signing {
val decoder = java.util.Base64.getDecoder()
val signingKey = System.getenv("NEW_SIGNING_KEY_ID_BASE64")
if (signingKey == null) error("ERROR: No Signing Key Found")
useInMemoryPgpKeys(
System.getenv("GPG_PRIVATE_KEY").chunked(64).joinToString("\n"),
System.getenv("GPG_PRIVATE_PASSWORD")
String(decoder.decode(signingKey)),
System.getenv("NEW_SIGNING_KEY_ID_BASE64_PASS")
)
sign(publishing.publications)
}
Expand Down

0 comments on commit 5049f3d

Please sign in to comment.