Skip to content

Commit

Permalink
#137 speed up release branch checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Mrowetz committed Jan 30, 2017
1 parent 6ced761 commit 522ba06
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions build-utils/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,21 @@

echo "Start Github release for ${VERSION}..."

CHANGELOG=${CHANGELOG}
CHANGELOG="${CHANGELOG:-}"

###
# Github Release
###
[ -d .release ] && rm -rf .release
git clone -b release [email protected]:micmro/PerfCascade.git .release

# TODO: test this alternative (might be faster as it only uses one branch)
# git init
# git remote add -t refspec remotename [email protected]:micmro/PerfCascade.git
# git fetch
git clone -b release \
--branch=release \
--single-branch \
[email protected]:micmro/PerfCascade.git \
.release

cd .release

# TODO test
# remove all to ensure deleted files get deleted as well
git rm -rf .
# git clean -fxd

# Copy files
cp -r ../build/release/ .
Expand All @@ -51,5 +48,5 @@ curl \
-H "Authorization: token ${GITHUB_TOKEN}" \
https://api.github.com/repos/micmro/PerfCascade/releases

echo "Github release done - cleanup..."
# echo "Github release done - cleanup..."
# rm -rf .release

0 comments on commit 522ba06

Please sign in to comment.