tag releases

This commit is contained in:
David Dollar
2017-01-11 15:15:55 -05:00
parent 7b90020232
commit 5c11b9371d
2 changed files with 13 additions and 3 deletions
+1 -3
View File
@@ -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 ./...
Executable
+12
View File
@@ -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)