Skip to content

Commit

Permalink
build: Only sign when making official releases
Browse files Browse the repository at this point in the history
This implies not to sign JitPack snapshot builds, which would not work as
signing is not set up there.

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Feb 1, 2024
1 parent 5012819 commit d673e1b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_RELEASE_SIGNING_ENABLED: true
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
run: ./gradlew publishAndReleaseToMavenCentral
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ mavenPublishing {

coordinates(groupId = "org${getGroupId(parent)}")
publishToMavenCentral(SonatypeHost.DEFAULT)
signAllPublications()

pom {
name = project.name
Expand Down

0 comments on commit d673e1b

Please sign in to comment.