Skip to content

Commit d0e93a5

Browse files
author
yann degat
committed
Fix gpg passphrase preset
1 parent 66aac07 commit d0e93a5

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
- 'v*'
1717
jobs:
1818
goreleaser:
19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-20.04
2020
steps:
2121
-
2222
name: Checkout
@@ -32,10 +32,23 @@ jobs:
3232
-
3333
name: Import GPG key
3434
id: import_gpg
35-
uses: paultyng/[email protected].0
35+
uses: yanndegat/[email protected].1-testkeygrips
3636
env:
3737
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
3838
PASSPHRASE: ${{ secrets.PASSPHRASE }}
39+
# -
40+
# name: Reload gpg agent
41+
# id: reload-gpg-agent
42+
# run: |
43+
# /bin/sh -c 'gpg --version; dpkg -l | grep -e gnupg -e gpg ; gpg-connect-agent reloadagent /bye; cat ~/.gnupg/gpg-agent.conf'
44+
# -
45+
# name: Preset passphrase
46+
# id: preset_gpg_passphrase
47+
# run: |
48+
# /bin/sh -c 'for i in $(gpg --list-keys --with-keygrip --with-colons "$GPG_FINGERPRINT" | grep "^grp:" | cut -d: -f10); do echo "$GPG_PASSPHRASE" | /usr/lib/gnupg/gpg-preset-passphrase --preset $i; done'
49+
# env:
50+
# GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
51+
# PASSPHRASE: ${{ secrets.PASSPHRASE }}
3952
-
4053
name: Run GoReleaser
4154
uses: goreleaser/goreleaser-action@v2

0 commit comments

Comments
 (0)