Skip to content

Commit

Permalink
GPG_PRIVATE_KEY parsing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bgalek committed Mar 20, 2023
1 parent 151394b commit 8717723
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import java.util.Base64

plugins {
`kotlin-dsl`
groovy
Expand Down Expand Up @@ -185,7 +187,7 @@ if (System.getenv("GPG_KEY_ID") != null) {
signing {
useInMemoryPgpKeys(
System.getenv("GPG_KEY_ID"),
System.getenv("GPG_PRIVATE_KEY").replace(" ", "\n"),
String(Base64.getDecoder().decode(System.getenv("GPG_PRIVATE_KEY_BASE64"))),
System.getenv("GPG_PRIVATE_KEY_PASSWORD")
)
sign(publishing.publications)
Expand Down

0 comments on commit 8717723

Please sign in to comment.