Skip to content

Commit 0abe28d

Browse files
authoredAug 20, 2024··
migrate to v2 (#16)
1 parent b12e49d commit 0abe28d

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed
 

‎.goreleaser.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This is an example .goreleaser.yml file with some sensible defaults.
22
# Make sure to check the documentation at https://goreleaser.com
3+
version: 2
34
before:
45
hooks:
56
# You may remove this if you don't use go modules.
@@ -17,16 +18,17 @@ archives:
1718
- files:
1819
- README.md
1920
- LICENSE
20-
replacements:
21-
darwin: Darwin
22-
linux: Linux
23-
windows: Windows
24-
386: i386
25-
amd64: x86_64
21+
name_template: >-
22+
{{- .ProjectName }}_
23+
{{- title .Os }}_
24+
{{- if eq .Arch "amd64" }}x86_64
25+
{{- else if eq .Arch "386" }}i386
26+
{{- else }}{{ .Arch }}{{ end }}
27+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
2628
checksum:
2729
name_template: 'checksums.txt'
2830
snapshot:
29-
name_template: "{{ incpatch .Version }}-next"
31+
version_template: "{{ incpatch .Version }}-next"
3032
changelog:
3133
sort: asc
3234
filters:

0 commit comments

Comments
 (0)
Please sign in to comment.