Skip to content

Commit

Permalink
fix: don't fail when SIGNING_KEY is not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
augi committed Mar 19, 2021
1 parent 406bd36 commit 1146807
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ publishing {
}

signing {
useInMemoryPgpKeys(new String(Base64.decoder.decode(System.getenv('SIGNING_KEY'))), System.getenv('SIGNING_PASSWORD'))
sign publishing.publications
String base64Key = System.getenv('SIGNING_KEY')
if (base64Key) {
useInMemoryPgpKeys(new String(Base64.decoder.decode(base64Key)), System.getenv('SIGNING_PASSWORD'))
sign publishing.publications
}
}

nexusPublishing {
Expand Down

0 comments on commit 1146807

Please sign in to comment.