File tree Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ permissions:
10
10
11
11
jobs :
12
12
goreleaser :
13
+ environment : goreleaser
13
14
runs-on : ubuntu-latest
14
15
steps :
15
16
- name : Checkout
23
24
go-version : stable
24
25
25
26
- name : Import GPG key
27
+ id : import_gpg
26
28
uses : crazy-max/ghaction-import-gpg@v6
27
29
with :
28
30
gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
57
59
DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
58
60
DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
59
61
AUR_KEY : ${{ secrets.AUR_KEY }}
60
- GPG_FINGERPRINT : ${{ secrets.GPG_FINGERPRINT }}
62
+ GPG_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
snapshot :
11
+ environment : goreleaser
11
12
runs-on : ubuntu-latest
12
13
steps :
13
14
- name : Checkout
@@ -19,12 +20,20 @@ jobs:
19
20
uses : actions/setup-go@v5
20
21
with :
21
22
go-version : stable
22
-
23
+
24
+ - name : Import GPG key
25
+ id : import_gpg
26
+ uses : crazy-max/ghaction-import-gpg@v6
27
+ with :
28
+ gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
29
+ passphrase : ${{ secrets.GPG_PASSPHRASE }}
30
+
23
31
- name : Test GoReleaser
24
32
uses : goreleaser/goreleaser-action@v6
25
33
with :
26
34
distribution : goreleaser-pro
27
35
version : " ~> v2"
28
36
args : release --snapshot --clean --skip=publish
29
37
env :
30
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
+ GPG_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
Original file line number Diff line number Diff line change @@ -402,10 +402,10 @@ release:
402
402
403
403
# Sign checksums and artifacts
404
404
signs :
405
- - cmd : gpg
405
+ - cmd : gpg2
406
406
args :
407
407
- " --batch"
408
- - " --local-user "
408
+ - " -u "
409
409
- " {{ .Env.GPG_FINGERPRINT }}"
410
410
- " --output"
411
411
- " ${signature}"
You can’t perform that action at this time.
0 commit comments