Skip to content

Commit f7b7e75

Browse files
committed
Update release workflow to be able to sign artifact consistently
1 parent b510fcc commit f7b7e75

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
with:
2424
distribution: liberica
2525
java-version: 17
26+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
27+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2628

2729
- name: Set version in POM
2830
run: ./mvnw versions:set -DnewVersion=${{ github.event.release.tag_name }}
@@ -34,6 +36,7 @@ jobs:
3436
run: ./mvnw deploy -Pgithub
3537
env:
3638
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
3740

3841
- name: Set up Apache Maven Central
3942
uses: actions/setup-java@v4

0 commit comments

Comments
 (0)