Skip to content

Commit

Permalink
git action command import gpg
Browse files Browse the repository at this point in the history
  • Loading branch information
DQinYuan committed Apr 7, 2024
1 parent 5787b34 commit 7e0a1ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ jobs:
- name: debug settings.xml
run: cat /home/runner/.m2/settings.xml
- name: Publish to Maven Central Repo
run: mvn clean deploy --batch-mode --activate-profiles deploy
run: |
echo $GPG_SECRET | base64 --decode | gpg --import
mvn clean deploy --batch-mode --activate-profiles deploy
env:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
Expand Down

0 comments on commit 7e0a1ee

Please sign in to comment.