File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -56,12 +56,19 @@ jobs:
5656 with :
5757 go-version : stable
5858
59+ - name : Import GPG key
60+ run : |
61+ echo "$GPG_PRIVATE_KEY" | gpg --batch --import
62+ env :
63+ GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
64+
5965 - name : Release
6066 uses : goreleaser/goreleaser-action@v6
6167 env :
6268 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6369 GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
6470 GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
71+ GPG_FINGERPRINT : ${{ secrets.GPG_FINGERPRINT }}
6572 with :
6673 version : ' ~> v2'
6774 args : release --clean
Original file line number Diff line number Diff line change @@ -44,7 +44,21 @@ checksum:
4444 algorithm : sha256
4545
4646signs :
47- - artifacts : checksum
47+ - id : default
48+ cmd : gpg
49+ artifacts : checksum
50+ args :
51+ - --batch
52+ - --pinentry-mode
53+ - loopback
54+ - --local-user
55+ - ' {{ .Env.GPG_FINGERPRINT }}'
56+ - --passphrase
57+ - ' {{ .Env.GPG_PASSPHRASE }}'
58+ - --output
59+ - ' ${signature}'
60+ - --detach-sign
61+ - ' ${artifact}'
4862
4963release :
5064 draft : false
You can’t perform that action at this time.
0 commit comments