Publish new docs (automated commit)

This commit is contained in:
Jason Salzman
2016-10-06 11:39:55 -07:00
parent 3ff0ad9458
commit ed2526c801
54 changed files with 0 additions and 58621 deletions
-25
View File
@@ -1,25 +0,0 @@
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
npm run build
mkdir -p tmp
if [ ! -d "tmp/gh-pages" ]; then
git clone git@github.com:jasonsalzman/react-add-to-calendar.git --branch gh-pages --single-branch tmp/gh-pages
fi
cd tmp/gh-pages
git pull
find . -maxdepth 1 ! -name '.git' ! -name '.' -exec rm -r {} \;
cp -r $DIR/{bundle.js,index.html,style.css,images} ./
git add --all
git commit -m "Publish new docs (automated commit)"
git push