-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#137 speed up release branch checkout
- Loading branch information
Michael Mrowetz
committed
Jan 30, 2017
1 parent
6ced761
commit 522ba06
Showing
1 changed file
with
8 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/ . | ||
|
@@ -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 |