From 1ba33f376ec065f00d3cc41cded8c6d8ac5facce Mon Sep 17 00:00:00 2001 From: Paul Tyng Date: Tue, 26 Mar 2019 11:23:06 -0400 Subject: [PATCH] Setup goreleaser --- .gitignore | 1 + .goreleaser.yml | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .gitignore create mode 100644 .goreleaser.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1521c8b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +dist diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..4251c82 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,36 @@ +env: + - GO111MODULE=on +before: + hooks: + - go mod download + - go mod verify + # - go generate ./... +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - darwin + - windows + goarch: + - 386 + - amd64 + - arm + - arm64 +archive: + name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' + replacements: + darwin: Darwin + linux: Linux + windows: Windows + 386: i386 + amd64: x86_64 + format_overrides: + - goos: windows + format: zip +checksum: + name_template: '{{ .ProjectName }}_checksums.txt' +snapshot: + name_template: "{{ .Tag }}-next" +changelog: + skip: true