Skip to content

Commit b15f232

Browse files
author
QuadStingray
authored
feat: installed pgp key from secret
1 parent b14bc08 commit b15f232

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/main_test_release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,18 @@ jobs:
5353
uses: supercharge/mongodb-github-action@1.7.0
5454
with:
5555
mongodb-version: 5.0
56+
- id: install-secret-key
57+
name: Install gpg secret key
58+
run: |
59+
cat <(echo -e "${{ secrets.PGP_KEY }}") | gpg --batch --import
60+
gpg --list-secret-keys --keyid-format LONG
5661
- name: Release
5762
env:
5863
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}
5964
GITHUB_USER: ${{ secrets.GH_USERNAME }}
6065
GITHUB_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}
6166
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
6267
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
63-
PGP_KEY: ${{ secrets.PGP_KEY }}
6468
run: |
6569
git config --global user.email "ci@mongocamp.dev"
6670
git config --global user.name "MongoCamp CI"

0 commit comments

Comments
 (0)