Skip to content

Commit

Permalink
Sign keys when building
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenStack committed Jan 9, 2025
1 parent 770f908 commit c61bcb4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,17 @@ nexusPublishing {
password.set(System.getenv("SONATYPE_PASSWORD"))

println("---\n".repeat(10))
println(System.getenv("SONATYPE_USERNAME").length)
println(System.getenv("SONATYPE_PASSWORD").length)
println("---\n".repeat(10))
}
}
}
}

signing {
sign(publishing.publications["mavenJava"])
isRequired = System.getenv("CI") != null

val privateKey = System.getenv("GPG_PRIVATE_KEY")
val keyPassphrase = System.getenv()["GPG_PASSWORD"]
useInMemoryPgpKeys(privateKey, keyPassphrase)

sign(publishing.publications)
}

0 comments on commit c61bcb4

Please sign in to comment.