Skip to content

Commit 3c9d1c8

Browse files
committed
ci: add goreleaser binary name and archive format.
1 parent 845753f commit 3c9d1c8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.goreleaser.yml

+10
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ before:
99
builds:
1010
- id: "kcl"
1111
main: ./cmd/kcl/main.go
12+
binary: kcl
1213
goos:
1314
- darwin
1415
- linux
@@ -20,3 +21,12 @@ builds:
2021
- CGO_ENABLED=0
2122
ldflags:
2223
- "-X kcl-lang.io/cli/pkg/version.version={{.Version}}"
24+
25+
archives:
26+
- id: default
27+
builds:
28+
- default
29+
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
30+
format_overrides:
31+
- goos: windows
32+
format: zip

0 commit comments

Comments
 (0)