diff --git a/.goreleaser.yml b/.goreleaser.yml index 6fef861..ebafce6 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,11 +1,12 @@ -# This is an example .goreleaser.yml file with some sane defaults. -# Make sure to check the documentation at http://goreleaser.com +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 @@ -13,17 +14,25 @@ builds: - linux - windows - darwin + archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + - name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end }} + files: + - LICENSE + - README.md + checksum: name_template: 'checksums.txt' + snapshot: - name_template: "{{ .Tag }}-next" + version_template: "{{ .Tag }}-next" + changelog: sort: asc filters: