Skip to content

Commit 56dd1c2

Browse files
committed
Fix not signing publication
1 parent 2187a7c commit 56dd1c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ publishing {
170170
}
171171

172172
signing {
173-
if (System.getenv("GPG_PRIVATE_KEY") == null) {
173+
val privateKey = System.getenv("GPG_PRIVATE_KEY")
174+
175+
if (privateKey == null || privateKey == "null") {
174176
// Don't sign the publication.
175177
} else {
176178
var signingKey = String(Base64.getDecoder().decode(System.getenv("GPG_PRIVATE_KEY"))).trim()

0 commit comments

Comments
 (0)