#!/bin/bash
rm -rf docs/html/ || exit 0;
jsdoc -c js-doc.json
( cd docs/html/
 git init
 git config user.name "Njagi Mwaniki"
 git config user.email "njagi@urbanslug.com"
 git add .
 git commit -m "Deployed to Github Pages"
 git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1
)

#!/bin/bash
rm -rf docs/html/ || exit 0;
echo "Generating docs"
jsdoc -c js-doc.json

echo "Preparing to push docs to github"
( cd docs/html/
 git init
 git config user.name "Njagi Mwaniki"
 git config user.email "njagi@urbanslug.com"
 git add .
 git commit -m "Deployed to Github Pages"
 git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1
)

Print progress of deploying to gh-pages
Print progress of deploying to gh-pages

Signed-off-by: Njagi Mwaniki <b6a4ba60ad861b9c9afb6daea7294be4be68f44c@urbanslug.com>
