Skip to content

Commit 2154014

Browse files
build: add goreleaser.yml
1 parent 889288d commit 2154014

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.goreleaser.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
before:
2+
hooks:
3+
- go mod tidy
4+
5+
builds:
6+
-
7+
env:
8+
- CGO_ENABLED=0
9+
goos:
10+
- linux
11+
- windows
12+
- darwin
13+
ldflags:
14+
- -s -w -X main.Version={{.Version}} -X main.Commit={{.Commit}} -X main.BuildTime={{.Date}}
15+
ignore:
16+
- goos: darwin
17+
goarch: arm64
18+
19+
archives:
20+
-
21+
replacements:
22+
darwin: Darwin
23+
linux: Linux
24+
windows: Windows
25+
386: i386
26+
amd64: x86_64
27+
files:
28+
- LICENSE.md
29+
- README.md
30+
31+
checksum:
32+
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
33+
algorithm: sha256
34+
35+
snapshot:
36+
name_template: "{{ .Tag }}"
37+
38+
changelog:
39+
sort: asc
40+
filters:
41+
exclude:
42+
- '^docs:'
43+
- '^test:'
44+
- '^style:'
45+
- '^chore:'
46+
- '^refactor'
47+
48+
release:
49+
draft: true

0 commit comments

Comments
 (0)