From d8373ae2ea6bb625d80629e0410080a0648a9eff Mon Sep 17 00:00:00 2001 From: netevert Date: Sun, 10 Jan 2021 18:23:03 +0100 Subject: [PATCH] fixed goreleaser config --- .goreleaser.yml | 45 +++++++++++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 16 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index c7fb510..57339c9 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,24 +1,37 @@ -# .goreleaser.yml -project_name: dnsmorph -# Build customization +before: + hooks: + # You may remove this if you don't use go modules. + - go mod download + # you may remove this if you don't need go generate + - go generate ./... builds: - - binary: dnsmorph + - env: + - CGO_ENABLED=0 goos: - - windows - linux + - windows goarch: - amd64 - 386 - arm - arm64 -# Archive customization -archive: - format: tar.gz - replacements: - amd64: 64-bit - 386: 32-bit - format_overrides: - - goos: windows - format: zip - files: - - data/GeoLite2-City.zip \ No newline at end of file +archives: + - + replacements: + 386: 32-bit + amd64: 64-bit + files: + - data/* + format_overrides: + - goos: windows + format: zip +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:'