Fix ordering of tagging and compiling in release script

This commit is contained in:
Zachary Yedidia 2017-06-23 17:26:06 -04:00
parent 19926d95fe
commit 244e0ded60
5 changed files with 62 additions and 58 deletions

View File

@ -1,13 +1,13 @@
# Source tar # Source tar
# ./vendor-src.sh micro-$1-src ./vendor-src.sh micro-$1-src
cd .. cd ..
mkdir -p binaries mkdir -p binaries
mkdir -p micro-$1 mkdir -p micro-$1
# mv micro-$1-src.tar.gz binaries mv micro-$1-src.tar.gz binaries
# mv micro-$1-src.zip binaries mv micro-$1-src.zip binaries
cp LICENSE micro-$1 cp LICENSE micro-$1
cp README.md micro-$1 cp README.md micro-$1

View File

@ -1,5 +1,4 @@
# This script creates the nightly release on Github for micro # This script creates the nightly release on Github for micro
# It assumes that the binaries are in the current directory
# You must have the correct Github access token to run this script # You must have the correct Github access token to run this script
echo "Deleting old release" echo "Deleting old release"
@ -23,6 +22,10 @@ github-release release \
--description "Autogenerated nightly build of micro" \ --description "Autogenerated nightly build of micro" \
--pre-release --pre-release
echo "Cross compiling binaries"
./cross-compile.sh $1
mv ../binaries .
echo "Uploading OSX binary" echo "Uploading OSX binary"
github-release upload \ github-release upload \
--user zyedidia \ --user zyedidia \
@ -119,18 +122,18 @@ github-release upload \
--name "micro-$1-win32.zip" \ --name "micro-$1-win32.zip" \
--file binaries/micro-$1-win32.zip --file binaries/micro-$1-win32.zip
# echo "Uploading vendored tarball" echo "Uploading vendored tarball"
# github-release upload \ github-release upload \
# --user zyedidia \ --user zyedidia \
# --repo micro \ --repo micro \
# --tag nightly \ --tag nightly \
# --name "micro-$1-src.tar.gz" \ --name "micro-$1-src.tar.gz" \
# --file binaries/micro-$1-src.tar.gz --file binaries/micro-$1-src.tar.gz
#
# echo "Uploading vendored zip" echo "Uploading vendored zip"
# github-release upload \ github-release upload \
# --user zyedidia \ --user zyedidia \
# --repo micro \ --repo micro \
# --tag nightly \ --tag nightly \
# --name "micro-$1-src.zip" \ --name "micro-$1-src.zip" \
# --file binaries/micro-$1-src.zip --file binaries/micro-$1-src.zip

View File

@ -1,5 +1,4 @@
# This script creates releases on Github for micro # This script creates releases on Github for micro
# It assumes that the binaries are in the current directory
# You must have the correct Github access token to run this script # You must have the correct Github access token to run this script
# $1 is the title, $2 is the description # $1 is the title, $2 is the description
@ -20,6 +19,10 @@ github-release release \
--description "$2" \ --description "$2" \
--pre-release --pre-release
echo "Cross compiling binaries"
./cross-compile.sh $1
mv ../binaries .
echo "Uploading OSX binary" echo "Uploading OSX binary"
github-release upload \ github-release upload \
--user zyedidia \ --user zyedidia \
@ -116,18 +119,18 @@ github-release upload \
--name "micro-$1-win32.zip" \ --name "micro-$1-win32.zip" \
--file binaries/micro-$1-win32.zip --file binaries/micro-$1-win32.zip
# echo "Uploading vendored tarball" echo "Uploading vendored tarball"
# github-release upload \ github-release upload \
# --user zyedidia \ --user zyedidia \
# --repo micro \ --repo micro \
# --tag $tag \ --tag $tag \
# --name "micro-$1-src.tar.gz" \ --name "micro-$1-src.tar.gz" \
# --file binaries/micro-$1-src.tar.gz --file binaries/micro-$1-src.tar.gz
#
# echo "Uploading vendored zip" echo "Uploading vendored zip"
# github-release upload \ github-release upload \
# --user zyedidia \ --user zyedidia \
# --repo micro \ --repo micro \
# --tag $tag \ --tag $tag \
# --name "micro-$1-src.zip" \ --name "micro-$1-src.zip" \
# --file binaries/micro-$1-src.zip --file binaries/micro-$1-src.zip

View File

@ -1,5 +1,4 @@
# This script creates releases on Github for micro # This script creates releases on Github for micro
# It assumes that the binaries are in the current directory
# You must have the correct Github access token to run this script # You must have the correct Github access token to run this script
# $1 is the title, $2 is the description # $1 is the title, $2 is the description
@ -19,6 +18,10 @@ github-release release \
--name "$1" \ --name "$1" \
--description "$2" \ --description "$2" \
echo "Cross compiling binaries"
./cross-compile.sh $1
mv ../binaries .
echo "Uploading OSX binary" echo "Uploading OSX binary"
github-release upload \ github-release upload \
--user zyedidia \ --user zyedidia \
@ -115,19 +118,19 @@ github-release upload \
--name "micro-$1-win32.zip" \ --name "micro-$1-win32.zip" \
--file binaries/micro-$1-win32.zip --file binaries/micro-$1-win32.zip
# echo "Uploading vendored tarball" echo "Uploading vendored tarball"
# github-release upload \ github-release upload \
# --user zyedidia \ --user zyedidia \
# --repo micro \ --repo micro \
# --tag $tag \ --tag $tag \
# --name "micro-$1-src.tar.gz" \ --name "micro-$1-src.tar.gz" \
# --file binaries/micro-$1-src.tar.gz --file binaries/micro-$1-src.tar.gz
#
# echo "Uploading vendored zip" echo "Uploading vendored zip"
#
# github-release upload \ github-release upload \
# --user zyedidia \ --user zyedidia \
# --repo micro \ --repo micro \
# --tag $tag \ --tag $tag \
# --name "micro-$1-src.zip" \ --name "micro-$1-src.zip" \
# --file binaries/micro-$1-src.zip --file binaries/micro-$1-src.zip

View File

@ -1,9 +1,4 @@
cd ../cmd/micro cd ../..
govendor init
govendor add +e
cd ../../..
tar czf "$1".tar.gz micro tar czf "$1".tar.gz micro
zip -rq "$1".zip micro zip -rq "$1".zip micro