Skip to content

Commit 465195e

Browse files
committed
Simplify GPG key import process
1 parent fd488c8 commit 465195e

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/maven-central.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,11 @@ jobs:
1818
distribution: 'temurin'
1919
cache: 'maven'
2020

21-
- name: Import GPG key
22-
uses: crazy-max/ghaction-import-gpg@v6
23-
with:
24-
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
25-
passphrase: ${{ secrets.GPG_PASSPHRASE }}
26-
git_user_signingkey: true
27-
28-
- name: List GPG keys
21+
- name: Setup GPG
2922
run: |
23+
echo "${{ secrets.GPG_PRIVATE_KEY }}" > private.key
24+
gpg --batch --import private.key
25+
rm private.key
3026
echo "Listing GPG keys..."
3127
gpg --list-secret-keys --keyid-format LONG
3228
gpg --list-keys --keyid-format LONG

0 commit comments

Comments
 (0)