From 1a1cc26b653533736d6cf8b5574af23c1a26addd Mon Sep 17 00:00:00 2001 From: JBD Date: Thu, 1 Aug 2019 13:33:11 -0700 Subject: [PATCH] Add release script and publish binaries --- .gitignore | 1 + Makefile | 9 +++++++++ README.md | 6 ++++++ go.mod | 2 ++ 4 files changed, 18 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6dd29b7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +bin/ \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..634ffac --- /dev/null +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index 917c903..027a130 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/go.mod b/go.mod index ad966ab..3457000 100644 --- a/go.mod +++ b/go.mod @@ -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