Commit 49c5d2b 1 parent 639bb90 commit 49c5d2b Copy full SHA for 49c5d2b
File tree 2 files changed +18
-12
lines changed
2 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -18,31 +18,36 @@ jobs:
18
18
goreleaser :
19
19
runs-on : ubuntu-latest
20
20
steps :
21
- -
22
- name : Checkout
21
+ - name : Checkout
23
22
uses : actions/checkout@v4
24
- -
25
- name : Unshallow
23
+
24
+ - name : Unshallow
26
25
run : git fetch --prune --unshallow
27
- -
28
- name : Set up Go
26
+
27
+ - name : Set up Go
29
28
uses : actions/setup-go@v5
30
29
with :
31
30
go-version : 1.22
32
- -
33
- name : Import GPG key
31
+
32
+ - name : Import GPG key
34
33
id : import_gpg
35
34
uses : crazy-max/ghaction-import-gpg@v6
36
35
with :
37
36
gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
38
37
passphrase : ${{ secrets.GPG_PASSPHRASE }}
39
38
fingerprint : ${{ secrets.GPG_FINGERPRINT }}
40
- -
41
- name : Run GoReleaser
39
+
40
+ - name : Check goreleaser
42
41
uses : goreleaser/goreleaser-action@v5
43
42
with :
44
43
version : latest
45
- args : release --rm-dist
44
+ args : check
45
+
46
+ - name : Run GoReleaser
47
+ uses : goreleaser/goreleaser-action@v6
48
+ with :
49
+ version : latest
50
+ args : release
46
51
env :
47
52
GPG_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
48
53
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
# Visit https://goreleaser.com for documentation on how to customize this
2
2
# behavior.
3
+ version : 2
3
4
before :
4
5
hooks :
5
6
- go mod tidy
@@ -50,4 +51,4 @@ release:
50
51
# Manually examine the release before its live
51
52
draft : true
52
53
changelog :
53
- skip : false
54
+ use : github
You can’t perform that action at this time.
0 commit comments