From 0ec3ed63d39d72ce2e6e96fcf6a4854afcb34af6 Mon Sep 17 00:00:00 2001 From: g-bgg Date: Fri, 21 Apr 2023 16:04:18 +0200 Subject: [PATCH] fix release naming --- .goreleaser.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 186f690..e83f987 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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 @@ -32,4 +40,4 @@ sboms: - id: archive artifacts: archive - id: source - artifacts: source \ No newline at end of file + artifacts: source