File tree Expand file tree Collapse file tree 3 files changed +83
-0
lines changed
Expand file tree Collapse file tree 3 files changed +83
-0
lines changed Original file line number Diff line number Diff line change 1+ name : goreleaser
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*.*.*"
7+
8+ permissions :
9+ contents : write
10+
11+ jobs :
12+ goreleaser :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ - name : Set up Go
17+ uses : actions/setup-go@v4
18+ with :
19+ go-version : " 1.23"
20+ - name : Run GoReleaser
21+ uses : goreleaser/goreleaser-action
22+ with :
23+ distribution : goreleaser
24+ version : ${{ env.GITHUB_REF_NAME }}
25+ args : release --clean
26+ env :
27+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 22# deploy/
33id_ed25 *
44id_ed25519 *
5+ # Added by goreleaser init:
6+ dist /
Original file line number Diff line number Diff line change 1+ version : 2
2+
3+ before :
4+ hooks :
5+ - go mod tidy
6+ - go generate ./...
7+
8+ builds :
9+ - env :
10+ - CGO_ENABLED=0
11+ main : ./cmd
12+ goos :
13+ - linux
14+ - windows
15+ - darwin
16+
17+ goarch :
18+ - amd64
19+ - arm64
20+
21+ ldflags :
22+ - -s -w -X github.com/ayinke-llc/sdump.Version={{.Version}}
23+
24+ archives :
25+ - format : tar.gz
26+ # this name template makes the OS and Arch compatible with the results of `uname`.
27+ name_template : >-
28+ {{ .ProjectName }}_
29+ {{- title .Os }}_
30+ {{- if eq .Arch "amd64" }}x86_64
31+ {{- else if eq .Arch "386" }}i386
32+ {{- else }}{{ .Arch }}{{ end }}
33+ {{- if .Arm }}v{{ .Arm }}{{ end }}
34+ # use zip for windows archives
35+ format_overrides :
36+ - goos : windows
37+ format : zip
38+
39+ changelog :
40+ sort : asc
41+ filters :
42+ exclude :
43+ - " ^docs:"
44+ - " ^test:"
45+
46+ release :
47+ footer : >-
48+
49+ ---
50+
51+ Released by [GoReleaser](https://github.com/goreleaser/goreleaser).
52+
53+ checksum :
54+ name_template : " checksums.txt"
You can’t perform that action at this time.
0 commit comments