From b0607eb095f2bd7c8243e88b6f80a5ff2bdaf1dc Mon Sep 17 00:00:00 2001 From: Toni Melisma Date: Sun, 6 Dec 2020 14:18:01 +0200 Subject: [PATCH] initialize goreleaser for release automation --- .gitignore | 1 + .goreleaser.yml | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .goreleaser.yml diff --git a/.gitignore b/.gitignore index 0c7596f..b0b1d07 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ # Dependency directories (remove the comment below to include it) vendor/ +dist/ .env diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..c76d317 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,37 @@ +# TODO add homebrew packagin +# TODO add Ubuntu packaging +# TODO add github integration +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: + - env: + - CGO_ENABLED=0 + goos: + - linux + - darwin + goarch: + - amd64 + main: ./cmd/fastgallery/main.go + binary: ./bin/fastgallery +archives: + - replacements: + darwin: macOS + linux: Linux + # windows: Windows + #386: i386 + amd64: x86_64 + wrap_in_directory: true +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:'