File tree Expand file tree Collapse file tree 2 files changed +75
-0
lines changed
Expand file tree Collapse file tree 2 files changed +75
-0
lines changed Original file line number Diff line number Diff line change 1+ name : release
2+ on :
3+ push :
4+ tags :
5+ - *
6+
7+ permissions :
8+ contents : write
9+
10+ jobs :
11+ goreleaser :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : checkout
15+ uses : actions/checkout@v4
16+ with :
17+ fetch-depth : 0
18+ - name : setup go
19+ uses : actions/setup-go@v5
20+ with :
21+ go-version : stable
22+ - name : run goreleaser
23+ uses : goreleaser/goreleaser-action@v6
24+ with :
25+ distribution : goreleaser
26+ version : ${{ env.GITHUB_REF_NAME }}
27+ args : release --clean
28+ env :
29+ GITHUB_TOKEN : ${{ secrets.PUBLISHER_TOKEN }}
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+
4+ # The lines below are called `modelines`. See `:help modeline`
5+ # Feel free to remove those if you don't want/need to use them.
6+ # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
7+ # vim: set ts=2 sw=2 tw=0 fo=cnqoj
8+
9+ version : 2
10+
11+ before :
12+ hooks :
13+ # You may remove this if you don't use go modules.
14+ - go mod tidy
15+ # you may remove this if you don't need go generate
16+ - go generate ./...
17+
18+ builds :
19+ - env :
20+ - CGO_ENABLED=0
21+ goos :
22+ - linux
23+ - windows
24+ - darwin
25+
26+ archives :
27+ - format : tar.gz
28+ # this name template makes the OS and Arch compatible with the results of `uname`.
29+ name_template : >-
30+ {{ .ProjectName }}_
31+ {{- title .Os }}_
32+ {{- if eq .Arch "amd64" }}x86_64
33+ {{- else if eq .Arch "386" }}i386
34+ {{- else }}{{ .Arch }}{{ end }}
35+ {{- if .Arm }}v{{ .Arm }}{{ end }}
36+ # use zip for windows archives
37+ format_overrides :
38+ - goos : windows
39+ format : zip
40+
41+ changelog :
42+ sort : asc
43+ filters :
44+ exclude :
45+ - " ^docs:"
46+ - " ^test:"
You can’t perform that action at this time.
0 commit comments