Don't sign when no key provided

This commit is contained in:
LoveSy 2023-02-28 11:35:52 +08:00
parent a48b9c63d1
commit c54355ef43
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -84,10 +84,10 @@ publishing {
signing {
val signingKey = findProperty("signingKey") as String?
val signingPassword = findProperty("signingPassword") as String?
if (signingKey != null && signingPassword != null) {
if (!signingKey.isNullOrBlank() && !signingPassword.isNullOrBlank()) {
useInMemoryPgpKeys(signingKey, signingPassword)
}
sign(publishing.publications)
}
}