<NME> deploy.sh
<BEF> #!/usr/bin/env bash

set -e

if [[ "false" != "$TRAVIS_PULL_REQUEST" ]]; then
	echo "Not deploying pull requests."
	exit
fi

if [[ "master" != "$TRAVIS_BRANCH" ]]; then
	echo "Not on the 'master' branch."
	exit
fi

mkdir deploy
cd deploy
git clone https://${GH_REF}
git checkout origin/gh-pages
cp ../README.md ./
rsync -avz ../api/ api/
git add api
git add README.md
touch .nojekyll
git add .nojekyll
cp example/index.html ./
git add index.html
git commit --quiet -m "Deploy from travis"
git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1

<MSG> bug fix

<DFF> @@ -14,7 +14,7 @@ fi
 
 mkdir deploy
 cd deploy
-git clone https://${GH_REF}
+git clone https://${GH_REF} .
 git checkout origin/gh-pages
 cp ../README.md ./
 rsync -avz ../api/ api/

bug fix