From 73bc12ae72ebbb5bc4d6366927fdf7b19f3464dc Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Sun, 12 Jun 2016 11:05:19 -0400 Subject: [PATCH] Add nightly release script --- tools/nightly-release.sh | 120 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100755 tools/nightly-release.sh diff --git a/tools/nightly-release.sh b/tools/nightly-release.sh new file mode 100755 index 00000000..323473b8 --- /dev/null +++ b/tools/nightly-release.sh @@ -0,0 +1,120 @@ +# This script creates the nightly release on Github for micro +# It assumes that the binaries are in the current directory +# You must have the correct Github access token to run this script + +echo "Deleting old release" +github-release delete \ + --user zyedidia \ + --repo micro \ + --tag nightly + +commitID=$(git rev-parse HEAD) + +echo "Moving tag" +git tag --force nightly $commitID +git push --force --tags + +echo "Creating new release" +github-release release \ + --user zyedidia \ + --repo micro \ + --tag nightly \ + --name "Nightly build" \ + --description "Autogenerated nightly build of micro" \ + --pre-release + +echo "Uploading OSX binary" +github-release upload \ + --user zyedidia \ + --repo micro \ + --tag nightly \ + --name "micro-osx.tar.gz" \ + --file binaries/micro-osx.tar.gz + +echo "Uploading Linux 64 binary" +github-release upload \ + --user zyedidia \ + --repo micro \ + --tag nightly \ + --name "micro-linux64.tar.gz" \ + --file binaries/micro-linux64.tar.gz + +echo "Uploading Linux 32 binary" +github-release upload \ + --user zyedidia \ + --repo micro \ + --tag nightly \ + --name "micro-linux32.tar.gz" \ + --file binaries/micro-linux32.tar.gz + +echo "Uploading Linux Arm binary" +github-release upload \ + --user zyedidia \ + --repo micro \ + --tag nightly \ + --name "micro-linux-arm.tar.gz" \ + --file binaries/micro-linux-arm.tar.gz + +echo "Uploading FreeBSD 64 binary" +github-release upload \ + --user zyedidia \ + --repo micro \ + --tag nightly \ + --name "micro-freebsd64.tar.gz" \ + --file binaries/micro-freebsd64.tar.gz + +echo "Uploading FreeBSD 32 binary" +github-release upload \ + --user zyedidia \ + --repo micro \ + --tag nightly \ + --name "micro-freebsd32.tar.gz" \ + --file binaries/micro-freebsd32.tar.gz + +echo "Uploading OpenBSD 64 binary" +github-release upload \ + --user zyedidia \ + --repo micro \ + --tag nightly \ + --name "micro-openbsd64.tar.gz" \ + --file binaries/micro-openbsd64.tar.gz + +echo "Uploading OpenBSD 32 binary" +github-release upload \ + --user zyedidia \ + --repo micro \ + --tag nightly \ + --name "micro-openbsd32.tar.gz" \ + --file binaries/micro-openbsd32.tar.gz + +echo "Uploading NetBSD 64 binary" +github-release upload \ + --user zyedidia \ + --repo micro \ + --tag nightly \ + --name "micro-netbsd64.tar.gz" \ + --file binaries/micro-netbsd64.tar.gz + +echo "Uploading NetBSD 32 binary" +github-release upload \ + --user zyedidia \ + --repo micro \ + --tag nightly \ + --name "micro-netbsd32.tar.gz" \ + --file binaries/micro-netbsd32.tar.gz + +echo "Uploading Windows 64 binary" +github-release upload \ + --user zyedidia \ + --repo micro \ + --tag nightly \ + --name "micro-win64.tar.gz" \ + --file binaries/micro-win64.zip + +echo "Uploading Windows 32 binary" +github-release upload \ + --user zyedidia \ + --repo micro \ + --tag nightly \ + --name "micro-win32.tar.gz" \ + --file binaries/micro-win32.zip