Skip to content

Commit

Permalink
Import GPG key (#25)
Browse files Browse the repository at this point in the history
Import GPG key during github action
  • Loading branch information
tspence authored Oct 3, 2024
1 parent 2d6383e commit 799a303
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ jobs:
- name: Prepare Maven environnement with Java 17 for deployment to Sonatype
run: export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED"

- name: Import GPG Key
uses: crazy-max/ghaction-import-gpg@v1
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_SIGNING_KEY }}
PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

- name: Publish to Sonatype Central
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: mvn -B -PsonatypeDeploy deploy
Expand Down

0 comments on commit 799a303

Please sign in to comment.