Skip to content

Commit 7eb3795

Browse files
committed
chore: releaser
1 parent ba7911f commit 7eb3795

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.goreleaser.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
before:
2+
hooks:
3+
- go mod tidy
4+
builds:
5+
- env:
6+
- CGO_ENABLED=0
7+
goos:
8+
- linux
9+
- windows
10+
- darwin
11+
12+
archives:
13+
- format: tar.gz
14+
# this name template makes the OS and Arch compatible with the results of uname.
15+
name_template: >-
16+
{{ .ProjectName }}_
17+
{{- title .Os }}_
18+
{{- if eq .Arch "amd64" }}x86_64
19+
{{- else if eq .Arch "386" }}i386
20+
{{- else }}{{ .Arch }}{{ end }}
21+
{{- if .Arm }}v{{ .Arm }}{{ end }}
22+
# use zip for windows archives
23+
format_overrides:
24+
- goos: windows
25+
format: zip
26+
checksum:
27+
name_template: 'checksums.txt'
28+
snapshot:
29+
name_template: "{{ incpatch .Version }}-next"
30+
changelog:
31+
sort: asc
32+
filters:
33+
exclude:
34+
- '^docs:'
35+
- '^test:'

0 commit comments

Comments
 (0)