Skip to content

Commit

Permalink
added script to publish at gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
sarbbottam committed Jul 1, 2015
1 parent 8fe2a73 commit e08bbfc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions script/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

rm -rf out || exit 0;
mkdir out;
( cd out
git init
git config user.name "sarbbottam"
git config user.email "sarbbottam@gmail.com"
cp ../index.html ./index.html
cp -r ../dist ./dist
cp -r ../src ./src
rm -rf ./src/css
git add .
git commit -m "initial commit"
git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1
)

0 comments on commit e08bbfc

Please sign in to comment.