Skip to content

Commit

Permalink
git action import gpg key
Browse files Browse the repository at this point in the history
  • Loading branch information
DQinYuan committed Apr 7, 2024
1 parent 1ade64f commit f61ed6a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
gpg-private-key: ${{ secrets.GPG_SECRET }}
- name: debug settings.xml
run: cat /home/runner/.m2/settings.xml
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_SECRET }}
passphrase: ${{ secrets.GPG_PASSWORD }}
- name: Publish to Maven Central Repo
run: mvn clean deploy --batch-mode --activate-profiles deploy
env:
Expand Down

0 comments on commit f61ed6a

Please sign in to comment.