Skip to content

Commit

Permalink
Add passphrase to gpgp
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Wenger committed Mar 25, 2024
1 parent dc0ee13 commit e29e36f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ jobs:
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Set project version
run: mvn versions:set -DnewVersion=${{ env.VERSION }}

- name: Install GPG secret key
run: echo "${{ secrets.OSSRH_GPG_SECRET_KEY }}" | gpg --batch --passphrase "${{ secrets.OSSRH_GPG_PASSPHRASE }}" --import
run: echo "${{ secrets.OSSRH_GPG_SECRET_KEY }}" | gpg --batch --import

- name: Check Imported GPG Keys
run: gpg --list-secret-keys --keyid-format LONG
Expand Down

0 comments on commit e29e36f

Please sign in to comment.