This repository was archived by the owner on Aug 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +72
-0
lines changed
Expand file tree Collapse file tree 2 files changed +72
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ pull_request :
5+ push :
6+ tags :
7+ - ' v*.*.*'
8+
9+ jobs :
10+ goreleaser :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v2
15+ - name : Set up Go
16+ uses : actions/setup-go@v2
17+ with :
18+ go-version : 1.15
19+ - name : Run GoReleaser
20+ uses : goreleaser/goreleaser-action@v2
21+ with :
22+ version : latest
23+ args : release --rm-dist
24+ env :
25+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ env :
2+ - CGO_ENABLED=0
3+ - GOFLAGS=-mod=vendor
4+ - GO111MODULE=auto
5+
6+ before :
7+ hooks :
8+ - go mod vendor
9+
10+ builds :
11+ - id : binary
12+ goos :
13+ - linux
14+ - darwin
15+ - windows
16+ goarch :
17+ - amd64
18+ ldflags :
19+ - -s -w
20+
21+ archives :
22+ - builds :
23+ - binary
24+ replacements :
25+ darwin : Darwin
26+ linux : Linux
27+ windows : Windows
28+ 386 : x86
29+ amd64 : x86_64
30+ format_overrides :
31+ - goos : windows
32+ format : zip
33+ files : ["LICENSE"]
34+
35+ checksum :
36+ name_template : ' checksums.txt'
37+ algorithm : sha256
38+
39+ snapshot :
40+ name_template : " {{ .Tag }}-next"
41+
42+ changelog :
43+ sort : asc
44+ filters :
45+ exclude :
46+ - ' ^docs:'
47+ - ' ^test:'
You can’t perform that action at this time.
0 commit comments