Skip to content

Commit

Permalink
fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Dubert committed Jun 1, 2015
1 parent 263a6a0 commit b5b0265
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions scripts/push_ghpages
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/bin/sh

# checkout
git checkout gh-pages
# merge
git merge -s recursive -X subtree=gh-pages origin/master --no-edit
# push (-q quiet)
git push origin gh-pages -q
#
git checkout master

# create a local gh-pages branch containing the splitted output folder
git subtree split --prefix examples -b gh-pages

# force the push of the gh-pages branch to the remote gh-pages branch at origin
git push -f origin gh-pages:gh-pages

# cleanup
git branch -D gh-pages

0 comments on commit b5b0265

Please sign in to comment.