diff --git a/Makefile b/Makefile index d0155c6..9741922 100644 --- a/Makefile +++ b/Makefile @@ -14,9 +14,7 @@ lint: $(SRC) go fmt release: - @curl -s https://bin.equinox.io/a/gSD5wcgebYp/release-tool-1.8.7-linux-amd64.tar.gz | sudo tar xz -C /usr/local/bin - @curl -s $(EQUINOX_KEY_URL) -o /tmp/equinox.key - @equinox release --version=$(shell date +%Y%m%d%H%M%S) --platforms="darwin_386 darwin_amd64 linux_386 linux_amd64 windows_386 windows_amd64" --channel=stable --signing-key=/tmp/equinox.key --app=$(EQUINOX_APP) --token=$(EQUINOX_TOKEN) + bin/release test: lint build go test -v -race -cover ./... diff --git a/bin/release b/bin/release new file mode 100755 index 0000000..d7b5171 --- /dev/null +++ b/bin/release @@ -0,0 +1,12 @@ +#!/bin/sh + +version=$(shell date +%Y%m%d%H%M%S) + +mkdir -p ~/.ssh +curl -s $(GITHUB_KEY_URL) -o ~/.ssh/id_rsa +chmod 0400 ~/.ssh/id_rsa +git tag ${version} +git push origin ${version} + +curl -s $(EQUINOX_KEY_URL) -o /tmp/equinox.key +equinox release --version=${version} --platforms="darwin_386 darwin_amd64 linux_386 linux_amd64 windows_386 windows_amd64" --channel=stable --signing-key=/tmp/equinox.key --app=$(EQUINOX_APP) --token=$(EQUINOX_TOKEN)