1 # This script creates releases 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 # $1 is the title, $2 is the description
7 commitID=$(git rev-parse HEAD)
11 git tag $tag $commitID
14 echo "Creating new release"
15 github-release release \
23 echo "Uploading OSX binary"
24 github-release upload \
28 --name "micro-$1-osx.tar.gz" \
29 --file binaries/micro-$1-osx.tar.gz
31 echo "Uploading Linux 64 binary"
32 github-release upload \
36 --name "micro-$1-linux64.tar.gz" \
37 --file binaries/micro-$1-linux64.tar.gz
39 echo "Uploading Linux 32 binary"
40 github-release upload \
44 --name "micro-$1-linux32.tar.gz" \
45 --file binaries/micro-$1-linux32.tar.gz
47 echo "Uploading Linux Arm binary"
48 github-release upload \
52 --name "micro-$1-linux-arm.tar.gz" \
53 --file binaries/micro-$1-linux-arm.tar.gz
55 echo "Uploading FreeBSD 64 binary"
56 github-release upload \
60 --name "micro-$1-freebsd64.tar.gz" \
61 --file binaries/micro-$1-freebsd64.tar.gz
63 echo "Uploading FreeBSD 32 binary"
64 github-release upload \
68 --name "micro-$1-freebsd32.tar.gz" \
69 --file binaries/micro-$1-freebsd32.tar.gz
71 echo "Uploading OpenBSD 64 binary"
72 github-release upload \
76 --name "micro-$1-openbsd64.tar.gz" \
77 --file binaries/micro-$1-openbsd64.tar.gz
79 echo "Uploading OpenBSD 32 binary"
80 github-release upload \
84 --name "micro-$1-openbsd32.tar.gz" \
85 --file binaries/micro-$1-openbsd32.tar.gz
87 echo "Uploading NetBSD 64 binary"
88 github-release upload \
92 --name "micro-$1-netbsd64.tar.gz" \
93 --file binaries/micro-$1-netbsd64.tar.gz
95 echo "Uploading NetBSD 32 binary"
96 github-release upload \
100 --name "micro-$1-netbsd32.tar.gz" \
101 --file binaries/micro-$1-netbsd32.tar.gz
103 echo "Uploading Windows 64 binary"
104 github-release upload \
108 --name "micro-$1-win64.zip" \
109 --file binaries/micro-$1-win64.zip
111 echo "Uploading Windows 32 binary"
112 github-release upload \
116 --name "micro-$1-win32.zip" \
117 --file binaries/micro-$1-win32.zip
119 echo "Uploading vendored tarball"
120 github-release upload \
124 --name "micro-$1-src.tar.gz" \
125 --file binaries/micro-$1-src.tar.gz
127 echo "Uploading vendored zip"
128 github-release upload \
132 --name "micro-$1-src.zip" \
133 --file binaries/micro-$1-src.zip