File tree 1 file changed +12
-14
lines changed
1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change 16
16
- " v*"
17
17
jobs :
18
18
goreleaser :
19
- environment : Default
20
19
runs-on : ubuntu-latest
21
20
steps :
22
- - name : Checkout
23
-
24
- - name : Unshallow
25
- run : git fetch --prune --unshallow
26
- - name : Set up Go
27
- uses : actions/setup-go@v2
21
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28
22
with :
29
- go-version : 1.19
23
+ # Allow goreleaser to access older tag information.
24
+ fetch-depth : 0
25
+ - uses : actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
26
+ with :
27
+ go-version-file : " go.mod"
28
+ cache : true
30
29
- name : Import GPG key
30
+ uses : crazy-max/ghaction-import-gpg@cb9bde2e2525e640591a934b1fd28eef1dcaf5e5 # v6.2.0
31
31
id : import_gpg
32
-
33
32
with :
34
33
gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
35
34
passphrase : ${{ secrets.PASSPHRASE }}
36
35
- name : Run GoReleaser
37
- uses : goreleaser/goreleaser-action@v2.5 .0
36
+ uses : goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1 .0
38
37
with :
39
- version : latest
40
- args : release --rm-dist
38
+ args : release --clean
41
39
env :
42
- GPG_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
43
- # GitHub sets this automatically
40
+ # GitHub sets the GITHUB_TOKEN secret automatically.
44
41
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
+ GPG_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
You can’t perform that action at this time.
0 commit comments