Skip to content

Commit

Permalink
fix: fix not decoding correct base64
Browse files Browse the repository at this point in the history
  • Loading branch information
duruer committed Dec 4, 2024
1 parent a5e4525 commit 924cdc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ java {
}

signing {
val signingKey = System.getenv("GPG_PRIVATE_KEY")?.let { String(Base64.getDecoder().decode(it)) }
val signingKey = System.getenv("GPG_PRIVATE_KEY")?.let { String(Base64.getDecoder().decode(it.replace("\n", ""))) }
val signingPassphrase = System.getenv("GPG_PASSPHRASE")

if (!signingKey.isNullOrEmpty() && !signingPassphrase.isNullOrEmpty()) {
Expand Down

0 comments on commit 924cdc8

Please sign in to comment.