File tree Expand file tree Collapse file tree 2 files changed +47
-18
lines changed Expand file tree Collapse file tree 2 files changed +47
-18
lines changed Original file line number Diff line number Diff line change 1
- name : Go
1
+ name : goreleaser
2
2
3
3
on :
4
- push :
5
- branches : [ master ]
6
4
pull_request :
7
- branches : [ master ]
5
+ push :
8
6
9
7
jobs :
10
-
11
- build :
8
+ goreleaser :
12
9
runs-on : ubuntu-latest
13
10
steps :
14
- - uses : actions/checkout@v2
15
-
16
- - name : Set up Go
17
- uses : actions/setup-go@v2
18
- with :
19
- go-version : 1.16
20
-
21
- - name : Build
22
- run : go build -v ./...
23
-
24
- - name : Test
25
- run : go test -v ./...
11
+ -
12
+ name : Checkout
13
+ uses : actions/checkout@v2
14
+ with :
15
+ fetch-depth : 0
16
+ -
17
+ name : Set up Go
18
+ uses : actions/setup-go@v2
19
+ with :
20
+ go-version : 1.16
21
+ -
22
+ name : Run GoReleaser
23
+ uses : goreleaser/goreleaser-action@v2
24
+ with :
25
+ distribution : goreleaser
26
+ version : latest
27
+ args : release --rm-dist
28
+ env :
29
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ # This is an example .goreleaser.yml file with some sane defaults.
2
+ # Make sure to check the documentation at http://goreleaser.com
3
+ before :
4
+ hooks :
5
+ # You may remove this if you don't use go modules.
6
+ - go mod tidy
7
+ builds :
8
+ - env :
9
+ - CGO_ENABLED=0
10
+ goos :
11
+ - linux
12
+ - windows
13
+ - darwin
14
+ goarch :
15
+ - amd64
16
+ checksum :
17
+ name_template : ' checksums.txt'
18
+ snapshot :
19
+ name_template : " {{ incpatch .Tag }}-next"
20
+ changelog :
21
+ sort : asc
22
+ filters :
23
+ exclude :
24
+ - ' ^docs:'
25
+ - ' ^test:'
You can’t perform that action at this time.
0 commit comments