We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49fbc36 commit f326d3eCopy full SHA for f326d3e
1 file changed
buildSrc/src/main/kotlin/lithic.publish.gradle.kts
@@ -49,11 +49,17 @@ configure<PublishingExtension> {
49
}
50
51
signing {
52
- useInMemoryPgpKeys(
53
- System.getenv("SIGNING_KEY_ID"),
54
- System.getenv("SIGNING_KEY"),
55
- System.getenv("SIGNING_PASSWORD"))
56
- sign(publishing.publications["maven"])
+ val signingKeyId = System.getenv("SIGNING_KEY_ID")
+ val signingKey = System.getenv("SIGNING_KEY")
+ val signingPassword = System.getenv("SIGNING_PASSWORD")
+ if (signingKey != null && signingPassword != null) {
+ useInMemoryPgpKeys(
57
+ signingKeyId,
58
+ signingKey,
59
+ signingPassword,
60
+ )
61
+ sign(publishing.publications["maven"])
62
+ }
63
64
65
tasks.publish {
0 commit comments