language: ruby
cache: bundler
install:
- bundle install
- npm install
script:
- "./build.sh"
deploy:
  provider: pages
  skip-cleanup: true
  local-dir: _site
  fqdn: newhaven.io
  github-token: $DEPLOY_TOKEN  # Set in travis-ci.org dashboard, marked secure
  keep-history: true
  on:
    branch: master

language: ruby
cache: bundler
install:
- bundle install
- npm install
script:
- "./build.sh"
deploy:
  provider: pages
  skip-cleanup: true
  local-dir: _site
  fqdn: newhaven.io
  github-token: $DEPLOY_TOKEN  # Set in travis-ci.org dashboard, marked secure
  keep-history: true
  target-branch: master
  on:
    branch: master

Deploy to master instead of gh-pages branch
Deploy to master instead of gh-pages branch

https://help.github.com/articles/user-organization-and-project-pages/#user-and-organization-pages-sites

Since this is an organization/user page, we can't use gh-pages as a
build branch for deployments
