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]>
sschuberth committed Feb 1, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 5012819 commit d673e1b
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
@@ -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
Original file line number Diff line number Diff line change
@@ -30,7 +30,6 @@ mavenPublishing {

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

pom {
name = project.name

0 comments on commit d673e1b

Please sign in to comment.