File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ name : goreleaser
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+
8+ permissions :
9+ contents : write
10+
11+ jobs :
12+ goreleaser :
13+ runs-on : ubuntu-latest
14+ steps :
15+ -
16+ name : Checkout
17+ uses : actions/checkout@v2
18+ with :
19+ fetch-depth : 0
20+ -
21+ name : Set up Go
22+ uses : actions/setup-go@v2
23+ with :
24+ go-version : 1.17
25+ -
26+ name : Run GoReleaser
27+ uses : goreleaser/goreleaser-action@v2
28+ with :
29+ distribution : goreleaser
30+ version : latest
31+ args : release --rm-dist
32+ env :
33+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ # Visit https://goreleaser.com for documentation on how to customize this
2+ # behavior.
3+ before :
4+ hooks :
5+ - go mod tidy
6+ source :
7+ enabled : true
8+ name_template : ' {{ .ProjectName }}-{{ .Version }}'
9+ format : ' tar.gz'
10+ prefix_template : ' {{ .ProjectName }}-{{ .Version }}/'
11+ checksum :
12+ name_template : ' {{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
13+ algorithm : sha256
14+ release :
15+ # Manually examine the release before it's live
16+ draft : true
17+ changelog :
18+ skip : false
You can’t perform that action at this time.
0 commit comments