From 1bffb95d1c67e2783ded19bf5dec36080208fef3 Mon Sep 17 00:00:00 2001 From: Sarat Chandra Date: Thu, 28 May 2020 19:41:49 +0530 Subject: [PATCH] Add goreleaser --- .gitignore | 3 ++- .goreleaser.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .goreleaser.yml diff --git a/.gitignore b/.gitignore index 32ce8aa..c6e7484 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,5 @@ # Dependency directories (remove the comment below to include it) # vendor/ -shelf.bin \ No newline at end of file +shelf.bin +dist diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..5c57ba2 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,40 @@ +# This is an example goreleaser.yaml file with some sane defaults. +# Make sure to check the documentation at http://goreleaser.com +before: + hooks: + # You may remove this if you don't use go modules. + - go mod download +builds: +- env: + - CGO_ENABLED=0 + goos: + - freebsd + - linux + - darwin + goarch: + - amd64 + - arm + - arm64 + goarm: + - 6 + - 7 + main: ./cmd/shelf/ +archives: +- replacements: + darwin: Darwin + linux: Linux + freebsd: FreeBSD + 386: i386 + amd64: x86_64 + arm: arm + arm64: arm64 +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:'