From 96212d496a66613aacd87626daa8aa27c4e2a1c6 Mon Sep 17 00:00:00 2001 From: "Nathan M." Date: Mon, 21 Oct 2024 09:36:20 -0300 Subject: [PATCH] chore: updating .goreleaser.yaml --- .goreleaser.yaml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 154a1d1..085f73f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,3 +1,12 @@ +version: 2 + +before: + hooks: + # You may remove this if you don't use go modules. + - go mod tidy + # you may remove this if you don't need go generate + - go generate ./... + builds: - env: - CGO_ENABLED=0 @@ -7,6 +16,7 @@ builds: archives: - format: tar.gz + # this name template makes the OS and Arch compatible with the results of `uname`. name_template: >- {{ .ProjectName }}_ {{- title .Os }}_ @@ -14,14 +24,14 @@ archives: {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end }} + # use zip for windows archives + format_overrides: + - goos: windows + format: zip -checksum: - name_template: 'checksums.txt' -snapshot: - name_template: "{{ incpatch .Version }}-next" changelog: sort: asc filters: exclude: - - '^docs:' - - '^test:' + - "^docs:" + - "^test:"