Skip to content

Commit 14bc4a5

Browse files
author
Marvin Zhang
committed
chore: Add GPG key import step to GitHub Actions workflow
- Introduced a step to import the GPG private key from GitHub secrets for secure artifact signing. - Enhanced the workflow to ensure GPG signing capabilities are properly configured during the deployment process.
1 parent 7ca9a6c commit 14bc4a5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ jobs:
4343
</servers>
4444
</settings>" > ~/.m2/settings.xml
4545
46+
- name: Import GPG key
47+
run: |
48+
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
49+
env:
50+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
51+
4652
- name: Set GPG_TTY
4753
run: echo "export GPG_TTY=$(tty)" >> $GITHUB_ENV
4854

0 commit comments

Comments
 (0)