Skip to content

Commit 0ec3ed6

Browse files
committed
fix release naming
1 parent 48ca911 commit 0ec3ed6

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.goreleaser.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,29 @@ builds:
55
ldflags:
66
- -s
77
- -w
8-
- -X main.version={{.Version}}
8+
- -X main.version={{.Tag}}
99
- -X main.gitHash={{.FullCommit}}
1010
- -X main.buildDate={{.Date}}
1111
goos:
1212
- linux
13-
- windows
1413
- darwin
14+
- windows
1515
goarch:
1616
- amd64
17+
- arm
18+
- arm64
19+
goarm:
20+
- 6
21+
- 7
1722
main: ./cmd/netassert/cli/
1823
binary: netassert
1924
archives:
2025
- id: netassert
21-
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
26+
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
2227
format: tar.gz
28+
format_overrides:
29+
- goos: windows
30+
format: zip
2331
files:
2432
- LICENSE
2533
wrap_in_directory: false
@@ -32,4 +40,4 @@ sboms:
3240
- id: archive
3341
artifacts: archive
3442
- id: source
35-
artifacts: source
43+
artifacts: source

0 commit comments

Comments
 (0)