Skip to content

Commit

Permalink
pre import key
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Jul 31, 2024
1 parent d34e5a8 commit 2e05e7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy_to_central.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install gpg secret key
run: |
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
- name: Build with Maven
run: mvn package
- name: Set up Maven Central Repository
Expand All @@ -18,12 +21,10 @@ jobs:
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: GPG_KEY
gpg-passphrase: GPG_PASS
- name: Publish package
run: mvn deploy -Pdeploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
GPG_KEY: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
GPG_PASS: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}

0 comments on commit 2e05e7b

Please sign in to comment.