This repository was archived by the owner on Feb 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +76
-0
lines changed
Expand file tree Collapse file tree 2 files changed +76
-0
lines changed Original file line number Diff line number Diff line change 1+ # .github/workflows/release.yml
2+ name : goreleaser
3+
4+ on :
5+ push :
6+ # run only against tags
7+ tags :
8+ - " *"
9+
10+ permissions :
11+ contents : write
12+ # packages: write
13+ # issues: write
14+
15+ jobs :
16+ goreleaser :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - uses : actions/checkout@v3
20+ with :
21+ fetch-depth : 0
22+ - run : git fetch --force --tags
23+ - uses : actions/setup-go@v4
24+ with :
25+ go-version : stable
26+ # More assembly might be required: Docker logins, GPG, etc.
27+ # It all depends on your needs.
28+ - uses : goreleaser/goreleaser-action@v5
29+ with :
30+ # either 'goreleaser' (default) or 'goreleaser-pro':
31+ distribution : goreleaser
32+ version : latest
33+ args : release --clean
34+ env :
35+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36+ # Your GoReleaser Pro key, if you are using the 'goreleaser-pro'
37+ # distribution:
38+ # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
Original file line number Diff line number Diff line change 1+ # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
2+ # vim: set ts=2 sw=2 tw=0 fo=cnqoj
3+
4+ version : 1
5+
6+ before :
7+ hooks :
8+ - go mod tidy
9+
10+ builds :
11+ - env :
12+ - CGO_ENABLED=0
13+ goos :
14+ - linux
15+ - windows
16+ - darwin
17+
18+ archives :
19+ - format : tar.gz
20+ # this name template makes the OS and Arch compatible with the results of `uname`.
21+ name_template : >-
22+ {{ .ProjectName }}_
23+ {{- title .Os }}_
24+ {{- if eq .Arch "amd64" }}x86_64
25+ {{- else if eq .Arch "386" }}i386
26+ {{- else }}{{ .Arch }}{{ end }}
27+ {{- if .Arm }}v{{ .Arm }}{{ end }}
28+ # use zip for windows archives
29+ format_overrides :
30+ - goos : windows
31+ format : zip
32+
33+ changelog :
34+ sort : asc
35+ filters :
36+ exclude :
37+ - " ^docs:"
38+ - " ^test:"
You can’t perform that action at this time.
0 commit comments