diff --git a/.gitignore b/.gitignore index a19dd1c..b990d87 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ tmp/ bin/ +dist/ diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..dcaa444 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,21 @@ +# This is an example goreleaser.yaml file with some sane defaults. +# Make sure to check the documentation at http://goreleaser.com +before: + hooks: + - script/lint +builds: + - id: bindownloader + main: ./cmd/bindownloader + env: + - CGO_ENABLED=0 +archives: +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' diff --git a/Makefile b/Makefile index 142d052..28b36a8 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,10 @@ bin/gobin: bin/bindownloader bin/bindownloader $@ bins += bin/gobin +bin/goreleaser: bin/bindownloader + bin/bindownloader $@ +bins += bin/goreleaser + GOIMPORTS_REF := 8aaa1484dc108aa23dcf2d4a09371c0c9e280f6b bin/goimports: bin/gobin GOBIN=${CURDIR}/bin \ diff --git a/buildtools.json b/buildtools.json index 619c8a7..2ee8b4b 100644 --- a/buildtools.json +++ b/buildtools.json @@ -52,5 +52,23 @@ "move-from": "bin/protoc", "bin": "protoc" } + ], + "goreleaser": [ + { + "os": "darwin", + "arch": "amd64", + "url": "https://github.com/goreleaser/goreleaser/releases/download/v0.120.7/goreleaser_Darwin_x86_64.tar.gz", + "checksum": "2ec8bb354cca2936d0722e7da770c37e2ba6cc90de4a1cea186e20968c47b663", + "move-from": "goreleaser", + "bin": "goreleaser" + }, + { + "os": "linux", + "arch": "amd64", + "url": "https://github.com/goreleaser/goreleaser/releases/download/v0.120.7/goreleaser_Linux_x86_64.tar.gz", + "checksum": "771f2ad8219078b16a3e82097e9805309f6516640f0c6ab6b87f9b085a8ad743", + "move-from": "goreleaser", + "bin": "goreleaser" + } ] }