Skip to content

Commit 6276a60

Browse files
authored
Update deploy.yml
1 parent bdd5702 commit 6276a60

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,19 @@ jobs:
1818
server-id: central
1919
server-username: MAVEN_USERNAME
2020
server-password: MAVEN_PASSWORD
21+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
22+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2123

2224
- name: Extract version from POM
2325
id: get_version
2426
run: echo "VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
2527

26-
- name: Import GPG Key
27-
run: |
28-
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
29-
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
30-
gpgconf --reload gpg-agent
31-
3228
- name: Build and Publish
3329
run: mvn clean deploy -P release
3430
env:
3531
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
3632
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
33+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
3734
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
3835

3936
- name: Create GitHub Release

0 commit comments

Comments
 (0)