File tree 1 file changed +25
-14
lines changed
1 file changed +25
-14
lines changed Original file line number Diff line number Diff line change 1
- name : Release Go project
1
+ name : goreleaser
2
2
3
3
on :
4
4
push :
5
+ # run only against tags
5
6
tags :
6
- - " *"
7
+ - ' *'
8
+
9
+ permissions :
10
+ contents : write
11
+ # packages: write
12
+ # issues: write
7
13
8
14
jobs :
9
- build :
10
- name : GoReleaser build
15
+ goreleaser :
11
16
runs-on : ubuntu-latest
12
-
13
17
steps :
14
- - name : Check out code into the Go module directory
18
+ -
19
+ name : Checkout
15
20
uses : actions/checkout@v2
16
21
with :
17
- fetch-depth : 0 # See: https://goreleaser.com/ci/actions/
18
-
19
- - name : Set up Go 1.17
22
+ fetch-depth : 0
23
+ -
24
+ name : Fetch all tags
25
+ run : git fetch --force --tags
26
+ -
27
+ name : Set up Go
20
28
uses : actions/setup-go@v2
21
29
with :
22
- go-version : 1.17
23
- id : go
24
-
25
- - name : Run GoReleaser
26
- uses : goreleaser/goreleaser-action@master
30
+ go-version : 1.18
31
+ -
32
+ name : Run GoReleaser
33
+ uses : goreleaser/goreleaser-action@v2
27
34
with :
35
+ # either 'goreleaser' (default) or 'goreleaser-pro'
36
+ distribution : goreleaser
28
37
version : latest
29
38
args : release --rm-dist
30
39
env :
31
40
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
+ # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
42
+ # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
You can’t perform that action at this time.
0 commit comments