<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

rm -fr .git
rm -f .gitignore

git init
git config user.name $GIT_USER
git config user.email $GIT_EMAIL
cp ../README.md ./
rsync -az ../api/ api/
git commit --quiet -m "Deploy from travis"
git push --quiet "https://${GH_TOKEN}@${GH_REF}" origin gh-pages > /dev/null 2>&1
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> some fix

<DFF> @@ -19,6 +19,7 @@ git checkout origin/gh-pages
 git config user.name $GIT_USER
 git config user.email $GIT_EMAIL
 cp ../README.md ./
-rsync -az ../api/ api/
+rsync -az --delete --checksum ../api/ api/
+git add .
 git commit --quiet -m "Deploy from travis"
 git push --quiet "https://${GH_TOKEN}@${GH_REF}" origin gh-pages > /dev/null 2>&1

some fix