diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..5ee80af --- /dev/null +++ b/release.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +if [ ! -n "$1" ]; then + echo "Error:release version is blank!" + exit 1 +fi + +gox -osarch="darwin/amd64 linux/386 linux/amd64" -output="dist/{{.Dir}}_{{.OS}}_{{.Arch}}" +ghr -u mritd -t $GITHUB_RELEASE_TOKEN -replace -recreate --debug $1 dist/