Skip to content

Commit

Permalink
Fix build gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoepelman committed Apr 2, 2024
1 parent 2c63e3c commit 4d4a6e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ publishing {

signing {
if (onCI) {
val encryptedSigningKey = layout.projectDirectory.file(".github/workflows/pgp/github_actions.key.asc").asFile.readText()
val encryptedSigningKey = layout.projectDirectory.file(".github/workflows/publishing/github_actions.key.asc").asFile.readText()
val pgpPassphrase: String? = System.getenv("PGP_PASSPHRASE")
if (pgpPassphrase == null) {
logger.warn("PGP_PASSPHRASE env var is not set, cannot sign. This is expected in PR builds of forked repositories.")
} else {
if (pgpPassphrase != null) {
useInMemoryPgpKeys(encryptedSigningKey, pgpPassphrase)
} else {
logger.info("Publishing is disabled because the PGP_PASSPHRASE environment variable is not set.")
}
} else {
useGpgCmd()
Expand Down

0 comments on commit 4d4a6e0

Please sign in to comment.