2016-08-27 03:54:58 +03:00
|
|
|
# This script creates releases on Github for micro
|
|
|
|
# You must have the correct Github access token to run this script
|
|
|
|
|
|
|
|
# $1 is the title, $2 is the description
|
|
|
|
|
|
|
|
commitID=$(git rev-parse HEAD)
|
2016-08-27 18:21:41 +03:00
|
|
|
tag="v$1"
|
2016-08-27 03:54:58 +03:00
|
|
|
|
|
|
|
echo "Creating tag"
|
2016-08-27 18:21:41 +03:00
|
|
|
git tag $tag $commitID
|
2020-02-16 03:33:49 +03:00
|
|
|
hub push --tags
|
2016-08-27 03:54:58 +03:00
|
|
|
|
2020-02-16 03:33:49 +03:00
|
|
|
NL=$'\n'
|
2016-08-27 03:54:58 +03:00
|
|
|
|
2020-02-16 03:40:51 +03:00
|
|
|
echo "Cross compiling binaries"
|
|
|
|
./cross-compile.sh $1
|
|
|
|
mv ../binaries .
|
|
|
|
|
2020-02-16 03:33:49 +03:00
|
|
|
echo "Creating new release"
|
|
|
|
hub release create $tag \
|
|
|
|
--message "$1${NL}${NL}$2" \
|
|
|
|
--attach "binaries/micro-$1-osx.tar.gz" \
|
|
|
|
--attach "binaries/micro-$1-linux64.tar.gz" \
|
|
|
|
--attach "binaries/micro-$1-linux64-static.tar.gz" \
|
2020-07-06 20:30:49 +03:00
|
|
|
--attach "binaries/micro-$1-amd64.deb" \
|
2020-02-16 03:33:49 +03:00
|
|
|
--attach "binaries/micro-$1-linux32.tar.gz" \
|
|
|
|
--attach "binaries/micro-$1-linux-arm.tar.gz" \
|
|
|
|
--attach "binaries/micro-$1-linux-arm64.tar.gz" \
|
|
|
|
--attach "binaries/micro-$1-freebsd64.tar.gz" \
|
|
|
|
--attach "binaries/micro-$1-freebsd32.tar.gz" \
|
|
|
|
--attach "binaries/micro-$1-openbsd64.tar.gz" \
|
|
|
|
--attach "binaries/micro-$1-openbsd32.tar.gz" \
|
|
|
|
--attach "binaries/micro-$1-netbsd64.tar.gz" \
|
|
|
|
--attach "binaries/micro-$1-netbsd32.tar.gz" \
|
|
|
|
--attach "binaries/micro-$1-win64.zip" \
|
|
|
|
--attach "binaries/micro-$1-win32.zip"
|