diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 175c5ac..9aaadd6 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,12 +1,9 @@ project_name: mullvad-best-server -# This is an example .goreleaser.yml file with some sensible defaults. -# Make sure to check the documentation at https://goreleaser.com + 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 @@ -15,6 +12,9 @@ builds: - windows - darwin mod_timestamp: "{{ .CommitTimestamp }}" + ldflags: + - -s -w + archives: - replacements: darwin: Darwin @@ -24,10 +24,13 @@ archives: amd64: x86_64 format: binary name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + checksum: name_template: 'checksums.txt' + snapshot: name_template: "{{ incpatch .Version }}-next" + changelog: sort: asc filters: