Skip to content

Commit aeafaa6

Browse files
authored
Add gpg signing to release GH action (#68)
1 parent 37b1be9 commit aeafaa6

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/release.yml

+7-9
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,17 @@ jobs:
2424
with:
2525
go-version-file: 'go.mod'
2626
cache: true
27-
# Comment out for now until we have a GPG key to use for public release
28-
# - name: Import GPG key
29-
# uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
30-
# id: import_gpg
31-
# with:
32-
# gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
33-
# passphrase: ${{ secrets.PASSPHRASE }}
27+
- name: Import GPG key
28+
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
29+
id: import_gpg
30+
with:
31+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
32+
passphrase: ${{ secrets.PASSPHRASE }}
3433
- name: Run GoReleaser
3534
uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5.1.0
3635
with:
37-
args: release --clean ${{ env.SIGNING_DISABLED == 'true' && '--skip sign' }}
36+
args: release --clean
3837
env:
3938
# GitHub sets the GITHUB_TOKEN secret automatically.
4039
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4140
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
42-
SIGNING_DISABLED: 'true'

0 commit comments

Comments
 (0)