Skip to content

Commit

Permalink
Merge pull request #14 from WillAbides/goreleaser
Browse files Browse the repository at this point in the history
add goreleaser
  • Loading branch information
WillAbides authored Nov 5, 2019
2 parents 808fe56 + 040c911 commit a9a5dde
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
tmp/
bin/
dist/
21 changes: 21 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -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:'
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
18 changes: 18 additions & 0 deletions buildtools.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}

0 comments on commit a9a5dde

Please sign in to comment.