From eb4fec2f21c2c5a8b581a7b302025d3bc2bedd15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arturo=20Filast=C3=B2?= Date: Thu, 16 May 2019 15:41:57 +0200 Subject: [PATCH] Add commands for making a release --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e207d1e..c338dc6 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,14 @@ bindata: data/...; release: - goreleaser release --skip-publish + GITHUB_TOKEN=`cat ~/.GORELEASE_GITHUB_TOKEN` goreleaser --rm-dist + ./build.sh linux + mv dist/linux/amd64 dist/ooniprobe_$(git describe --tags | sed s/^v//)_linux_amd64 + tar cvzf dist/ooniprobe_$(git describe --tags | sed s/^v//)_linux_amd64.tar.gz \ + -C dist/ooniprobe_$(git describe --tags | sed s/^v//)_linux_amd64 \ + ooni + cd dist && shasum -a 256 ooniprobe_$(git describe --tags | sed s/^v//)_linux_amd64.tar.gz >> ooniprobe_checksums.txt + gpg -a --detach-sign dist/ooniprobe_checksums.txt test-internal: @$(GO) test -v ./internal/...