Skip to content

Commit

Permalink
fix release naming
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bgg committed Apr 21, 2023
1 parent 48ca911 commit 0ec3ed6
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,29 @@ builds:
ldflags:
- -s
- -w
- -X main.version={{.Version}}
- -X main.version={{.Tag}}
- -X main.gitHash={{.FullCommit}}
- -X main.buildDate={{.Date}}
goos:
- linux
- windows
- darwin
- windows
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7
main: ./cmd/netassert/cli/
binary: netassert
archives:
- id: netassert
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
wrap_in_directory: false
Expand All @@ -32,4 +40,4 @@ sboms:
- id: archive
artifacts: archive
- id: source
artifacts: source
artifacts: source

0 comments on commit 0ec3ed6

Please sign in to comment.