-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
0 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 |
---|---|---|
|
@@ -28,6 +28,16 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global --add url.https://github.com/.insteadOf "[email protected]:" | ||
for branch in $(git branch -r | grep '^origin/gh-pages/'); do | ||
branch_name=$(echo $branch | sed 's#origin/gh-pages/##') | ||
if ! git branch -r | grep -q "origin/$branch_name"; then | ||
echo "Deleting legacy remote branch $branch" | ||
git push origin --delete $branch | ||
fi | ||
done | ||
branch_name="gh-pages/$(git rev-parse --abbrev-ref HEAD)" | ||
git checkout --orphan "$branch_name" | ||
mv ".git" "Packing/Reference/0Release/" | ||
|