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 \
22 echo "Uploading OSX binary"
23 github-release upload \
27 --name "micro-$1-osx.tar.gz" \
28 --file binaries/micro-$1-osx.tar.gz
30 echo "Uploading Linux 64 binary"
31 github-release upload \
35 --name "micro-$1-linux64.tar.gz" \
36 --file binaries/micro-$1-linux64.tar.gz
38 echo "Uploading Linux 32 binary"
39 github-release upload \
43 --name "micro-$1-linux32.tar.gz" \
44 --file binaries/micro-$1-linux32.tar.gz
46 echo "Uploading Linux Arm binary"
47 github-release upload \
51 --name "micro-$1-linux-arm.tar.gz" \
52 --file binaries/micro-$1-linux-arm.tar.gz
54 echo "Uploading FreeBSD 64 binary"
55 github-release upload \
59 --name "micro-$1-freebsd64.tar.gz" \
60 --file binaries/micro-$1-freebsd64.tar.gz
62 echo "Uploading FreeBSD 32 binary"
63 github-release upload \
67 --name "micro-$1-freebsd32.tar.gz" \
68 --file binaries/micro-$1-freebsd32.tar.gz
70 echo "Uploading OpenBSD 64 binary"
71 github-release upload \
75 --name "micro-$1-openbsd64.tar.gz" \
76 --file binaries/micro-$1-openbsd64.tar.gz
78 echo "Uploading OpenBSD 32 binary"
79 github-release upload \
83 --name "micro-$1-openbsd32.tar.gz" \
84 --file binaries/micro-$1-openbsd32.tar.gz
86 echo "Uploading NetBSD 64 binary"
87 github-release upload \
91 --name "micro-$1-netbsd64.tar.gz" \
92 --file binaries/micro-$1-netbsd64.tar.gz
94 echo "Uploading NetBSD 32 binary"
95 github-release upload \
99 --name "micro-$1-netbsd32.tar.gz" \
100 --file binaries/micro-$1-netbsd32.tar.gz
102 echo "Uploading Windows 64 binary"
103 github-release upload \
107 --name "micro-$1-win64.zip" \
108 --file binaries/micro-$1-win64.zip
110 echo "Uploading Windows 32 binary"
111 github-release upload \
115 --name "micro-$1-win32.zip" \
116 --file binaries/micro-$1-win32.zip
118 echo "Uploading vendored tarball"
119 github-release upload \
123 --name "micro-$1-src.tar.gz" \
124 --file binaries/micro-$1-src.tar.gz
126 echo "Uploading vendored zip"
128 github-release upload \
132 --name "micro-$1-src.zip" \
133 --file binaries/micro-$1-src.zip