From 82881174e4c4987ab826214468480910ad03b09e Mon Sep 17 00:00:00 2001 From: Matvey Arye Date: Thu, 15 Oct 2020 10:45:29 -0400 Subject: [PATCH] Add goreleaser config --- .goreleaser.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .goreleaser.yml diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..2ad7911 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,42 @@ +# The documentation is at http://goreleaser.com +# Release instructions +# 1) git tag -a 0.1.0-beta.1 -m "Release 0.1.0-beta-1" +# 2) goreleaser //--skip-publish for dry-run +before: + hooks: + - go mod download +builds: +- env: + - CGO_ENABLED=0 + main: ./cmd/ts-dump/ + id: ts-dump +- env: + - CGO_ENABLED=0 + main: ./cmd/ts-restore/ + id: ts-restore + +#don't publish scoop but overwrite the weird names +scoop: + name: timescale-backup + commit_author: + name: Timescale + email: support@timescale.com + +archives: +- format: binary + replacements: + darwin: Darwin + linux: Linux + windows: Windows + 386: i386 + amd64: x86_64 +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:'