diff --git a/.goreleaser.yml b/.goreleaser.yml index af10a2c..8e3cfb8 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -12,22 +12,33 @@ before: - go mod download archives: - - files: - - src: LICENSE - dst: LICENSE.txt + - id: azmpf + ids: + - azmpf + name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}" formats: - - zip - name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + - tar.gz + format_overrides: + - goos: windows + formats: + - zip + files: + - none* builds: - - dir: cmd + - id: azmpf + binary: "{{ .ProjectName }}" + dir: cmd env: - CGO_ENABLED=0 mod_timestamp: "{{ .CommitTimestamp }}" flags: - -trimpath ldflags: - - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .Date }} + - -s -w + - -X main.version={{ .Version }} + - -X main.commit={{ .Commit }} + - -X main.date={{ .Date }} goos: - windows - linux @@ -42,15 +53,19 @@ builds: goarch: "386" - goos: windows goarch: arm - binary: "{{ .ProjectName }}_v{{ .Version }}" + goarm: "6" sboms: - - id: default - disable: false + - id: archive + artifacts: archive + - id: source + artifacts: source + - id: binary + artifacts: binary checksum: algorithm: sha256 - name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS" + name_template: "{{ .ProjectName }}_SHA256SUMS.txt" signs: - artifacts: checksum