Skip to content

Commit a78decd

Browse files
committed
add passphrase to CD process
1 parent b420929 commit a78decd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/cd.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ jobs:
5151
distribution: 'adopt'
5252

5353
- name: Import GPG key
54-
run: echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import
54+
run: echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import --passphrase "$GPG_PASSPHRASE"
5555
env:
5656
# To generate a new GPG key run the following command in your local terminal:
5757
# gpg --export-secret-keys -a "<key_id>" | base64
5858
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
59+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
5960
- name: Log GPG keys
6061
run: gpg --list-secret-keys --keyid-format LONG
6162

0 commit comments

Comments
 (0)