chore: fix travis deploy

Use TRAVIS_BRANCH env variable to detect correctly the current branch
and deploy to gh-pages only from when merged to master
Merge pull request #3 from applicaster/fix-travis-deploy

chore: fix travis deploy