File tree 3 files changed +15
-0
lines changed
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,17 @@ jobs:
22
22
go-version : 1.14
23
23
- name : Test
24
24
run : go test ./...
25
+ - name : Import GPG key
26
+ id : import_gpg
27
+
28
+ env :
29
+ GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
30
+ PASSPHRASE : ${{ secrets.PASSPHRASE }}
25
31
- name : Run GoReleaser
26
32
uses : goreleaser/goreleaser-action@v2
27
33
with :
28
34
version : latest
29
35
args : release --rm-dist --skip-publish --snapshot
30
36
env :
37
+ GPG_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
31
38
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -19,10 +19,17 @@ jobs:
19
19
go-version : 1.14
20
20
- name : Test
21
21
run : go test ./...
22
+ - name : Import GPG key
23
+ id : import_gpg
24
+
25
+ env :
26
+ GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
27
+ PASSPHRASE : ${{ secrets.PASSPHRASE }}
22
28
- name : Run GoReleaser
23
29
uses : goreleaser/goreleaser-action@v2
24
30
with :
25
31
version : latest
26
32
args : release --rm-dist
27
33
env :
34
+ GPG_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
28
35
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 37
37
# need to pass the batch flag to indicate its not interactive.
38
38
- " --batch"
39
39
- " --local-user"
40
+ - " {{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
40
41
- " --output"
41
42
- " ${signature}"
42
43
- " --detach-sign"
You can’t perform that action at this time.
0 commit comments