Skip to content

Commit 1d9a32a

Browse files
committed
ci: Update goreleaser config.
1 parent 3e8d448 commit 1d9a32a

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.goreleaser.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
version: 2
12
before:
23
hooks:
34
- go mod tidy
@@ -18,16 +19,16 @@ builds:
1819
- goos: windows
1920
goarch: arm64
2021
archives:
21-
- replacements:
22-
darwin: Darwin
23-
linux: Linux
24-
windows: Windows
25-
386: i386
26-
amd64: x86_64
22+
- name_template: >-
23+
{{ .ProjectName }}_{{ .Version }}_
24+
{{- .Os | title }}_
25+
{{- if eq .Arch "amd64" }}x86_64
26+
{{- else if eq .Arch "386" }}i386
27+
{{- else }}{{ .Arch }}{{ end }}
2728
checksum:
2829
name_template: 'checksums.txt'
2930
snapshot:
30-
name_template: "{{ incpatch .Version }}-next"
31+
version_template: "{{ incpatch .Version }}-next"
3132
changelog:
3233
sort: asc
3334
filters:

0 commit comments

Comments
 (0)