Skip to content

Commit 0f95516

Browse files
committed
Fix not signing publication
1 parent c4c4184 commit 0f95516

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/build.gradle.kts

+3-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ publishing {
129129
}
130130

131131
signing {
132-
if (System.getenv("GPG_PRIVATE_KEY") == null) {
132+
val privateKey = System.getenv("GPG_PRIVATE_KEY")
133+
134+
if (privateKey == null || privateKey == "null") {
133135
// Don't sign the publication.
134136
} else {
135137
var signingKey = String(Base64.getDecoder().decode(System.getenv("GPG_PRIVATE_KEY"))).trim()

0 commit comments

Comments
 (0)