#!/bin/bash
set -e
rm -rf doc/ || exit 0
npm run docs
cd doc/
git init
git config user.name "not-an-aardvark"
git config user.email "not-an-aardvark@users.noreply.github.com"
git add .
git commit -qm "Docs for commit $TRAVIS_COMMIT"
git push -fq "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1

#!/bin/bash
set -e
rm -rf doc/ || exit 0
git clone "https://${GH_REF}" --branch gh-pages --single-branch doc
npm run docs
cp doc/snoowrap.js "doc/snoowrap-$TRAVIS_TAG.js"
cp doc/snoowrap.min.js "doc/snoowrap-$TRAVIS_TAG.min.js"
cd doc/
git config user.name "not-an-aardvark"
git config user.email "not-an-aardvark@users.noreply.github.com"
git add -A
git commit -qm "Docs for commit $TRAVIS_COMMIT"
git push -q "https://${GH_TOKEN}@${GH_REF}" gh-pages > /dev/null 2>&1

Use versioning for the prebuilt browser bundles
Use versioning for the prebuilt browser bundles

[ci skip]
