branches:
  only:
    - gh-pages
    - /.*/
language: node_js
node_js:
  - "node"
  - "8"
  - "6"
  - "4"
addons:
  chrome: stable
sudo: required
before_script:
  - node_modules/gulp/bin/gulp.js startServer &
  - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 &
script: node_modules/gulp/bin/gulp.js
deploy:
  provider: pages
  skip-cleanup: true
  github-token: $GITHUB_TOKEN
  keep-history: true
  on:
    branch: master

branches:
  only:
    - gh-pages
    - /.*/
language: node_js
node_js:
  - "node"
  - "8"
  - "6"
  - "4"
addons:
  chrome: stable
sudo: required
before_script:
  - node_modules/gulp/bin/gulp.js startServer &
  - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 &
script: node_modules/gulp/bin/gulp.js
deploy:
  provider: pages
  skip-cleanup: true
  github-token: $GITHUB_TOKEN
  keep-history: true
  local-dir: "dist"
  on:
    branch: master

Correct GitHub Pages deployed directory to 'dist'
Correct GitHub Pages deployed directory to 'dist'
