Skip to content

Commit

Permalink
deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Dec 13, 2020
1 parent 04bf93f commit ec4b05e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

set -e

# if not on gh-pages brach exit
git status | grep gh-pages

echo '<meta http-equiv=refresh content=0;url=book/book/index.html>' > index.html
rm -r book/src
rm .gitignore
echo '.venv/' > .gitignore
echo '.idea/' >> .gitignore
echo 'data/' >> .gitignore
echo '__pychache__/' >> .gitignore



0 comments on commit ec4b05e

Please sign in to comment.