From 9f97a5ddc38d3ecb8172f12793ef0079197a2e33 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Mon, 28 Jan 2019 11:36:39 +0700 Subject: [PATCH] feat: goreleaser use --- .gitignore | 2 ++ .goreleaser.yml | 28 ++++++++++++++++++++++++++++ Makefile | 3 --- 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 .goreleaser.yml diff --git a/.gitignore b/.gitignore index 48eb0f1..ebe36ac 100644 --- a/.gitignore +++ b/.gitignore @@ -57,3 +57,5 @@ __generated__ # BINARY File # ###################### imgdiff + +dist diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..2148924 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,28 @@ +# Documentation at http://goreleaser.com +# Before release, create tag by: git tag -a v1.2.0 -m "Release: v1.2.0" && git push origin v1.2.0 +before: + hooks: + - go mod vendor + - go generate ./... + - gometalinter.v2 ./... --vendor --deadline=1m --disable-all --enable=gosec + - golangci-lint run --enable-all +builds: +- env: + - CGO_ENABLED=0 +archive: + 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:' diff --git a/Makefile b/Makefile index 08e9c48..e69de29 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +0,0 @@ -lint: - gometalinter.v2 ./... --vendor --deadline=1m --disable-all --enable=gosec - golangci-lint run --enable-all \ No newline at end of file