Skip to content

Commit 4d5df1a

Browse files
author
lc
committed
fix(gau): fix goreleaser action
1 parent 739aa71 commit 4d5df1a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/release_build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,18 @@ jobs:
2222
go-version: 1.17.2
2323
id: go
2424

25+
- name: Import GPG key
26+
id: import_gpg
27+
uses: crazy-max/ghaction-import-gpg@v4
28+
with:
29+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
30+
passphrase: ${{ secrets.GPG_PASSPHRASE }}
31+
2532
- name: Run GoReleaser
2633
uses: goreleaser/goreleaser-action@master
2734
with:
2835
version: latest
2936
args: release --rm-dist
3037
env:
3138
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }}
39+
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}

.goreleaser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ archives:
2525

2626
signs:
2727
- artifacts: checksum
28+
args: [ "--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}" ]

0 commit comments

Comments
 (0)