| 1 |
# This script updates the nightly release on Github for micro |
| 2 |
# Must be run from inside the micro git repository |
| 3 |
|
| 4 |
commitID=$(git rev-parse --short HEAD) |
| 5 |
|
| 6 |
go run remove-nightly-assets.go |
| 7 |
|
| 8 |
echo "Cross compiling binaries" |
| 9 |
./cross-compile.sh $1 |
| 10 |
mv ../binaries . |
| 11 |
|
| 12 |
MESSAGE=$'Nightly build\n\nAutogenerated nightly build of micro' |
| 13 |
|
| 14 |
echo "Updating release" |
| 15 |
hub release edit nightly \ |
| 16 |
--prerelease \ |
| 17 |
--draft=false \ |
| 18 |
--message "$MESSAGE (please DISREGARD the creation date of this Github release). Assets uploaded on $(date) for commit $commitID." \ |
| 19 |
--attach "binaries/micro-$1-osx.tar.gz" \ |
| 20 |
--attach "binaries/micro-$1-macos-arm64.tar.gz" \ |
| 21 |
--attach "binaries/micro-$1-linux64.tar.gz" \ |
| 22 |
--attach "binaries/micro-$1-linux64-static.tar.gz" \ |
| 23 |
--attach "binaries/micro-$1-amd64.deb" \ |
| 24 |
--attach "binaries/micro-$1-linux32.tar.gz" \ |
| 25 |
--attach "binaries/micro-$1-linux-arm.tar.gz" \ |
| 26 |
--attach "binaries/micro-$1-linux-arm64.tar.gz" \ |
| 27 |
--attach "binaries/micro-$1-freebsd64.tar.gz" \ |
| 28 |
--attach "binaries/micro-$1-freebsd32.tar.gz" \ |
| 29 |
--attach "binaries/micro-$1-openbsd64.tar.gz" \ |
| 30 |
--attach "binaries/micro-$1-openbsd32.tar.gz" \ |
| 31 |
--attach "binaries/micro-$1-netbsd64.tar.gz" \ |
| 32 |
--attach "binaries/micro-$1-netbsd32.tar.gz" \ |
| 33 |
--attach "binaries/micro-$1-win64.zip" \ |
| 34 |
--attach "binaries/micro-$1-win32.zip" |