Skip to content

Commit

Permalink
ci: add goreleaser binary name and archive format.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy committed Oct 25, 2023
1 parent 845753f commit 3c9d1c8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ before:
builds:
- id: "kcl"
main: ./cmd/kcl/main.go
binary: kcl
goos:
- darwin
- linux
Expand All @@ -20,3 +21,12 @@ builds:
- CGO_ENABLED=0
ldflags:
- "-X kcl-lang.io/cli/pkg/version.version={{.Version}}"

archives:
- id: default
builds:
- default
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
format: zip

0 comments on commit 3c9d1c8

Please sign in to comment.