Add release script and publish binaries

This commit is contained in:
JBD
2019-08-01 13:33:11 -07:00
parent 01803349ac
commit 1a1cc26b65
4 changed files with 18 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
bin/

9
Makefile Normal file
View File

@@ -0,0 +1,9 @@
binary = hey
release:
GOOS=windows GOARCH=amd64 go build -o ./bin/$(binary)_windows_amd64
GOOS=linux GOARCH=amd64 go build -o ./bin/$(binary)_linux_amd64
GOOS=darwin GOARCH=amd64 go build -o ./bin/$(binary)_darwin_amd64
push:
gsutil cp bin/* gs://$(binary)-release

View File

@@ -59,3 +59,9 @@ Options:
Previously known as [github.com/rakyll/boom](https://github.com/rakyll/boom).
Note: Requires go 1.7 or greater.
## Binaries
Linux 64-bit: https://storage.googleapis.com/hey-release/hey_linux_amd64
Mac 64-bit: https://storage.googleapis.com/hey-release/hey_darwin_amd64
Windows 64-bit: https://storage.googleapis.com/hey-release/hey_windows_amd64

2
go.mod
View File

@@ -4,3 +4,5 @@ require (
golang.org/x/net v0.0.0-20181017193950-04a2e542c03f
golang.org/x/text v0.3.0 // indirect
)
go 1.13