File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : goreleaser
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ note :
7+ description : ' Note'
8+ required : false
9+ default : ' '
10+ pull_request :
11+ push :
12+ tags :
13+ - ' *'
14+
15+ permissions :
16+ contents : write
17+
18+ jobs :
19+ goreleaser :
20+ runs-on : ubuntu-latest
21+ steps :
22+ -
23+ name : Checkout
24+ uses : actions/checkout@v2
25+ with :
26+ fetch-depth : 0
27+ -
28+ name : Set up Go
29+ uses : actions/setup-go@v2
30+ with :
31+ go-version : 1.17.3
32+ -
33+ name : Run GoReleaser
34+ uses : goreleaser/goreleaser-action@v2
35+ with :
36+ distribution : goreleaser
37+ version : latest
38+ args : release --rm-dist
39+ env :
40+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41+ -
42+ name : Upload artifacts
43+ uses : actions/upload-artifact@v2
44+ with :
45+ name : lbcd-${{ github.sha }}
46+ path : |
47+ dist/checksums.txt
48+ dist/*.tar.gz
Original file line number Diff line number Diff line change 1+ # This is an example .goreleaser.yml file with some sensible defaults.
2+ # Make sure to check the documentation at https://goreleaser.com
3+ before :
4+ hooks :
5+ # You may remove this if you don't use go modules.
6+ - go mod tidy
7+ # you may remove this if you don't need go generate
8+ - go generate ./...
9+ builds :
10+ - env :
11+ - CGO_ENABLED=0
12+ goarch :
13+ - amd64
14+ - arm64
15+ goos :
16+ - linux
17+ - windows
18+ - darwin
19+ ignore :
20+ - goos : windows
21+ goarch : arm64
22+ checksum :
23+ name_template : ' checksums.txt'
24+ snapshot :
25+ name_template : " {{ incpatch .Version }}-next"
26+ changelog :
27+ sort : asc
28+ filters :
29+ exclude :
30+ - ' ^docs:'
31+ - ' ^test:'
32+
33+ release :
34+ draft : true
35+ prerelease : auto
You can’t perform that action at this time.
0 commit comments