Skip to content

Commit

Permalink
added script to publish doc
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoNicolle committed Apr 16, 2018
1 parent 2b51649 commit ba30d57
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"build-es5": "cd lib/ && env babel *.js -d ../lib-es5",
"build-uglify": "uglifyjs dist/holes-in.js -o dist/holes-in.min.js",
"build-doc": "./tools/build-doc.sh",
"publish-doc": "./tools/publish-doc.sh",
"watchify": "mkdir -p dist && watchify -v --debug -s holes-in lib/index.js -o dist/holes-in.js",
"watchifyDebug": "watchify -v --debug debug/lib/index.js -o debug/debuglib.js"
},
Expand Down
15 changes: 15 additions & 0 deletions tools/deploy-doc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

holesInRoot="$(pwd)"
echo $holesInRoot"/doc.generated/"
mkdir /tmp/holes-in-deploy/
cd /tmp/holes-in-deploy/
git clone [email protected]:wanadev/holes-in.git
cd holes-in/
git checkout gh-pages
rm -rf ./*
cp -R $holesInRoot"/doc.generated/." .

git commit -am $0
git push
rm -rf /tmp/holes-in-deploy/

0 comments on commit ba30d57

Please sign in to comment.