Skip to content

Commit 3a2d7e9

Browse files
committed
Update GitHub Actions workflow with improved GPG configuration
1 parent 60482c9 commit 3a2d7e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/maven-central.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,21 @@ jobs:
2323
with:
2424
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
2525
passphrase: ${{ secrets.GPG_PASSPHRASE }}
26+
git_user_signingkey: true
2627

2728
- name: Build and Publish
2829
env:
2930
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME_TOKEN }}
3031
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD_TOKEN }}
32+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
3133
run: |
3234
echo "Starting Maven build and deploy..."
3335
mvn clean deploy -P release \
3436
-Dmaven.javadoc.skip=false \
3537
-Dmaven.deploy.skip=false \
3638
-Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} \
39+
-Dgpg.executable=gpg \
40+
-Dgpg.keyname=${{ secrets.GPG_KEYNAME }} \
3741
-Dmaven.test.failure.ignore=false
3842
3943
echo "Checking deployment status..."

0 commit comments

Comments
 (0)