Skip to content

Commit

Permalink
More sign fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benasher44 committed Jul 22, 2023
1 parent 0ddf25f commit 9f38e14
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,17 @@ signing {
def signingKey = System.getenv("SIGNING_KEY")
def signingPassword = System.getenv("SIGNING_PASSWORD")
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
}

publishing.publications.configureEach {
signing.sign(this)
sign(publishing.publications)
}

tasks.withType(Sign) {
onlyIf { isReleaseBuild() && (System.getenv("SIGNING_KEYID") != null) }
}

tasks.withType(AbstractPublishToMaven) {
dependsOn(tasks.withType(Sign))
}

tasks.register('publishMac') {
dependsOn 'publishIosArm64PublicationToMavenRepository'
dependsOn 'publishIosSimulatorArm64PublicationToMavenRepository'
Expand Down

0 comments on commit 9f38e14

Please sign in to comment.