mirror of
https://github.com/wahyd4/forego.git
synced 2026-08-08 21:01:01 +10:00
tag releases
This commit is contained in:
@@ -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
@@ -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)
|
||||
Reference in New Issue
Block a user