File tree 1 file changed +24
-25
lines changed
1 file changed +24
-25
lines changed Original file line number Diff line number Diff line change 1
- name : Release
1
+ name : goreleaser
2
2
3
3
on :
4
- release :
5
- types : [created]
6
- workflow_dispatch :
7
-
4
+ pull_request :
5
+ push :
6
+
7
+ permissions :
8
+ contents : write
8
9
9
10
jobs :
10
11
goreleaser :
11
12
runs-on : ubuntu-latest
12
13
steps :
13
- - name : Check out code
14
- uses : actions/checkout@v3
15
- with :
16
- fetch-depth : 0 # Important for Goreleaser to access all commits
17
-
18
- - name : Set up Go
19
- uses : actions/setup-go@v3
14
+ -
15
+ name : Checkout
16
+ uses : actions/checkout@v4
20
17
with :
21
- go-version : 1.22
22
-
23
- - name : Set up Goreleaser
24
- uses : goreleaser/goreleaser-action@v3
25
- with :
26
- version : latest
27
- args : release --rm-dist --snapshot
28
-
29
- - name : Run Goreleaser
30
- uses : goreleaser/goreleaser-action@v3
18
+ fetch-depth : 0
19
+ -
20
+ name : Set up Go
21
+ uses : actions/setup-go@v4
22
+ -
23
+ name : Run GoReleaser
24
+ uses : goreleaser/goreleaser-action@v5
31
25
with :
32
- version : latest
33
- args : release --rm-dist
26
+ # either 'goreleaser' (default) or 'goreleaser-pro'
27
+ distribution : goreleaser
28
+ # 'latest', 'nightly', or a semver
29
+ version : ' ~> v1'
30
+ args : release --clean
34
31
env :
35
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
+ # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
34
+ # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
You can’t perform that action at this time.
0 commit comments