Skip to content

Commit

Permalink
fix for gitbook v2
Browse files Browse the repository at this point in the history
  • Loading branch information
spacewander committed Mar 1, 2016
1 parent 0e46822 commit 1014b3e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/bin/sh

thisProject="explore-flask-zh"
tmpDir=$(mktemp -d)
gitbook build ./zh --output="$tmpDir" --config ./zh/book.json
set -x
tmpDir=$(mktemp -d -u)
gitbook build ./zh --config ./zh/book.json
mv ./zh/_book "$tmpDir"
git checkout gh-pages
cp -r .git "$tmpDir"
cd .. && rm -rf "$thisProject" && mv "$tmpDir" "$thisProject"
git commit -a -m "$(date)"
git push origin gh-pages
cp -r -t "$tmpDir" .git
cd "$tmpDir" && git commit -a -m "$(date)" && git push origin gh-pages

0 comments on commit 1014b3e

Please sign in to comment.