1 # This script creates releases on Github for micro
2 # You must have the correct Github access token to run this script
4 # $1 is the title, $2 is the description
6 commitID=$(git rev-parse HEAD)
10 git tag $tag $commitID
13 echo "Creating new release"
14 github-release release \
21 echo "Cross compiling binaries"
25 echo "Uploading OSX binary"
26 github-release upload \
30 --name "micro-$1-osx.tar.gz" \
31 --file binaries/micro-$1-osx.tar.gz
33 echo "Uploading Linux 64 binary"
34 github-release upload \
38 --name "micro-$1-linux64.tar.gz" \
39 --file binaries/micro-$1-linux64.tar.gz
41 echo "Uploading Linux 64 static binary"
42 github-release upload \
46 --name "micro-$1-linux64-static.tar.gz" \
47 --file binaries/micro-$1-linux64-static.tar.gz
49 echo "Uploading Linux 32 binary"
50 github-release upload \
54 --name "micro-$1-linux32.tar.gz" \
55 --file binaries/micro-$1-linux32.tar.gz
57 echo "Uploading Linux Arm 32 binary"
58 github-release upload \
62 --name "micro-$1-linux-arm.tar.gz" \
63 --file binaries/micro-$1-linux-arm.tar.gz
65 echo "Uploading Linux Arm 64 binary"
66 github-release upload \
70 --name "micro-$1-linux-arm64.tar.gz" \
71 --file binaries/micro-$1-linux-arm64.tar.gz
73 echo "Uploading FreeBSD 64 binary"
74 github-release upload \
78 --name "micro-$1-freebsd64.tar.gz" \
79 --file binaries/micro-$1-freebsd64.tar.gz
81 echo "Uploading FreeBSD 32 binary"
82 github-release upload \
86 --name "micro-$1-freebsd32.tar.gz" \
87 --file binaries/micro-$1-freebsd32.tar.gz
89 echo "Uploading OpenBSD 64 binary"
90 github-release upload \
94 --name "micro-$1-openbsd64.tar.gz" \
95 --file binaries/micro-$1-openbsd64.tar.gz
97 echo "Uploading OpenBSD 32 binary"
98 github-release upload \
102 --name "micro-$1-openbsd32.tar.gz" \
103 --file binaries/micro-$1-openbsd32.tar.gz
105 echo "Uploading NetBSD 64 binary"
106 github-release upload \
110 --name "micro-$1-netbsd64.tar.gz" \
111 --file binaries/micro-$1-netbsd64.tar.gz
113 echo "Uploading NetBSD 32 binary"
114 github-release upload \
118 --name "micro-$1-netbsd32.tar.gz" \
119 --file binaries/micro-$1-netbsd32.tar.gz
121 echo "Uploading Windows 64 binary"
122 github-release upload \
126 --name "micro-$1-win64.zip" \
127 --file binaries/micro-$1-win64.zip
129 echo "Uploading Windows 32 binary"
130 github-release upload \
134 --name "micro-$1-win32.zip" \
135 --file binaries/micro-$1-win32.zip
137 # echo "Uploading vendored tarball"
138 # github-release upload \
142 # --name "micro-$1-src.tar.gz" \
143 # --file binaries/micro-$1-src.tar.gz
145 # echo "Uploading vendored zip"
146 # github-release upload \
150 # --name "micro-$1-src.zip" \
151 # --file binaries/micro-$1-src.zip