From 0468bfcad6f3a48d970ca8a3d9887e343d47d4d2 Mon Sep 17 00:00:00 2001 From: Muneeb Aijaz <43588696+MuneebAijaz@users.noreply.github.com> Date: Wed, 19 Jul 2023 11:29:18 +0500 Subject: [PATCH] Update goreleaser config --- .goreleaser.yml | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index bd5b2f4d..1f0ffa30 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,29 +1,25 @@ # .goreleaser.yml -before: - hooks: - - go mod download - - go generate ./... builds: - - env: - - CGO_ENABLED=0 - goos: - - linux - - windows - - darwin +- env: + - CGO_ENABLED=0 + goos: + - windows + - darwin + - linux + goarch: + - 386 + - amd64 + - arm + - arm64 archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 -checksum: - name_template: 'checksums.txt' +- name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" snapshot: name_template: "{{ .Tag }}-next" +checksum: + name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt" changelog: sort: asc filters: exclude: - - '^docs:' - - '^test:' + - '^docs:' + - '^test:'