1 # This script creates the nightly release on Github for micro
2 # It assumes that the binaries are in the current directory
3 # You must have the correct Github access token to run this script
5 echo "Deleting old release"
6 github-release delete \
11 commitID=$(git rev-parse HEAD)
14 git tag --force nightly $commitID
15 git push --force --tags
17 echo "Creating new release"
18 github-release release \
22 --name "Nightly build" \
23 --description "Autogenerated nightly build of micro" \
26 echo "Uploading OSX binary"
27 github-release upload \
31 --name "micro-$1-osx.tar.gz" \
32 --file binaries/micro-$1-osx.tar.gz
34 echo "Uploading Linux 64 binary"
35 github-release upload \
39 --name "micro-$1-linux64.tar.gz" \
40 --file binaries/micro-$1-linux64.tar.gz
42 echo "Uploading Linux 32 binary"
43 github-release upload \
47 --name "micro-$1-linux32.tar.gz" \
48 --file binaries/micro-$1-linux32.tar.gz
50 echo "Uploading Linux Arm binary"
51 github-release upload \
55 --name "micro-$1-linux-arm.tar.gz" \
56 --file binaries/micro-$1-linux-arm.tar.gz
58 echo "Uploading FreeBSD 64 binary"
59 github-release upload \
63 --name "micro-$1-freebsd64.tar.gz" \
64 --file binaries/micro-$1-freebsd64.tar.gz
66 echo "Uploading FreeBSD 32 binary"
67 github-release upload \
71 --name "micro-$1-freebsd32.tar.gz" \
72 --file binaries/micro-$1-freebsd32.tar.gz
74 echo "Uploading OpenBSD 64 binary"
75 github-release upload \
79 --name "micro-$1-openbsd64.tar.gz" \
80 --file binaries/micro-$1-openbsd64.tar.gz
82 echo "Uploading OpenBSD 32 binary"
83 github-release upload \
87 --name "micro-$1-openbsd32.tar.gz" \
88 --file binaries/micro-$1-openbsd32.tar.gz
90 echo "Uploading NetBSD 64 binary"
91 github-release upload \
95 --name "micro-$1-netbsd64.tar.gz" \
96 --file binaries/micro-$1-netbsd64.tar.gz
98 echo "Uploading NetBSD 32 binary"
99 github-release upload \
103 --name "micro-$1-netbsd32.tar.gz" \
104 --file binaries/micro-$1-netbsd32.tar.gz
106 echo "Uploading Windows 64 binary"
107 github-release upload \
111 --name "micro-$1-win64.zip" \
112 --file binaries/micro-$1-win64.zip
114 echo "Uploading Windows 32 binary"
115 github-release upload \
119 --name "micro-$1-win32.zip" \
120 --file binaries/micro-$1-win32.zip
122 echo "Uploading vendored tarball"
123 github-release upload \
127 --name "micro-$1-src.tar.gz" \
128 --file binaries/micro-$1-src.tar.gz
130 echo "Uploading vendored zip"
131 github-release upload \
135 --name "micro-$1-src.zip" \
136 --file binaries/micro-$1-src.zip