Skip to content

Commit

Permalink
chore: update CI script (#131)
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmed Moussa <ahmed.moussa@iohk.io>
  • Loading branch information
hamada147 authored Feb 28, 2024
1 parent e7a8cc3 commit 757e68e
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -184,20 +184,24 @@ subprojects {
url.set("https://github.com/input-output-hk/atala-prism-wallet-sdk-kmm")
}
}
signing {
val base64EncodedAsciiArmoredSigningKey: String =
System.getenv("BASE64_ARMORED_GPG_SIGNING_KEY_MAVEN") ?: ""
val signingKeyPassword: String =
System.getenv("SIGNING_KEY_PASSWORD") ?: ""
useInMemoryPgpKeys(
String(
Base64.getDecoder().decode(
base64EncodedAsciiArmoredSigningKey.toByteArray()
if (System.getenv("BASE64_ARMORED_GPG_SIGNING_KEY_MAVEN") != null) {
if (System.getenv("BASE64_ARMORED_GPG_SIGNING_KEY_MAVEN").isNotBlank()) {
signing {
val base64EncodedAsciiArmoredSigningKey: String =
System.getenv("BASE64_ARMORED_GPG_SIGNING_KEY_MAVEN") ?: ""
val signingKeyPassword: String =
System.getenv("SIGNING_KEY_PASSWORD") ?: ""
useInMemoryPgpKeys(
String(
Base64.getDecoder().decode(
base64EncodedAsciiArmoredSigningKey.toByteArray()
)
),
signingKeyPassword
)
),
signingKeyPassword
)
sign(this@withType)
sign(this@withType)
}
}
}
}
}
Expand Down

0 comments on commit 757e68e

Please sign in to comment.