Skip to content

Commit 404f50b

Browse files
committed
goreleaser: update to version 2
1 parent 5c74fd3 commit 404f50b

File tree

1 file changed

+24
-13
lines changed

1 file changed

+24
-13
lines changed

.goreleaser.yml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,39 @@
1-
# Build customization
1+
version: 2
2+
3+
env:
4+
- CGO_ENABLED=0
5+
26
builds:
3-
-
7+
- id: subber
48
main: ./cmd/subber/subber.go
59
binary: subber
610
goos:
7-
- windows
11+
- linux
812
- darwin
13+
- windows
914
goarch:
1015
- 386
1116
- amd64
1217
ignore:
1318
- goos: darwin
1419
goarch: 386
15-
# Archive customization
20+
1621
archives:
17-
- id: tgz
18-
format: tar.gz
22+
- id: all
1923
format_overrides:
2024
- goos: windows
2125
format: zip
22-
replacements:
23-
amd64: 64-bit
24-
386: 32-bit
25-
darwin: macOS
26-
files:
27-
- README.md
28-
- LICENSE
26+
name_template: >-
27+
{{- .ProjectName }}_
28+
{{- title .Os }}_
29+
{{- if eq .Arch "amd64" }}x86_64
30+
{{- else if eq .Arch "386" }}i386
31+
{{- else }}{{ .Arch }}{{ end }}
32+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
33+
34+
checksum:
35+
name_template: 'checksums.txt'
36+
snapshot:
37+
name_template: "{{ .Tag }}"
38+
changelog:
39+
sort: asc

0 commit comments

Comments
 (0)