Skip to content

Commit

Permalink
skip signing on local publish - only checks for signing on CI builds (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
saperi22 authored May 10, 2024
1 parent 67c237d commit 9d3d2aa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gradle/gradle-publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,13 @@ afterEvaluate {
}
}

def isCiEnvironment = System.getenv('CI')
signing {
sign publishing.publications
sign configurations.archives
required { isCiEnvironment }
if(isCiEnvironment) {
sign publishing.publications
sign configurations.archives
}
}
}

Expand Down

0 comments on commit 9d3d2aa

Please sign in to comment.