File tree 1 file changed +11
-18
lines changed
1 file changed +11
-18
lines changed Original file line number Diff line number Diff line change 1
- name : goreleaser
1
+ name : GoReleaser
2
2
3
3
on :
4
- pull_request :
4
+ workflow_dispatch :
5
5
push :
6
6
tags :
7
7
- " *"
8
8
9
+ permissions :
10
+ contents : write
11
+
9
12
jobs :
10
13
goreleaser :
11
14
runs-on : ubuntu-latest
12
15
steps :
13
16
- name : Checkout
14
- uses : actions/checkout@v2
17
+ uses : actions/checkout@v4
15
18
with :
16
19
fetch-depth : 0
17
20
- name : Set up Go
18
- uses : actions/setup-go@v2
19
- with :
20
- go-version : 1.18
21
- - name : Cache Go modules
22
- uses : actions/cache@v1
21
+ uses : actions/setup-go@v4
23
22
with :
24
- path : ~/go/pkg/mod
25
- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
26
- restore-keys : |
27
- ${{ runner.os }}-go-
28
- - name : Tests
29
- run : |
30
- go mod tidy
31
- go test -v ./...
23
+ go-version : 1.21
32
24
- name : Run GoReleaser
33
- uses : goreleaser/goreleaser-action@v2
25
+ uses : goreleaser/goreleaser-action@v5
34
26
with :
27
+ distribution : goreleaser
35
28
version : latest
36
- args : release --rm-dist
29
+ args : release --clean
37
30
env :
38
31
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments