language: node_js
node_js:
    - "node"
    - "7"
    - "8"
install: npm install
script:
  - npm run-script docs
deploy:
  overwrite: true
  provider: pages
  file_glob: true
  file: docs/*
  local_dir: docs
  skip_cleanup: true
  github_token: $GITHUB_TOKEN
  on:
    branch: master

language: node_js
node_js:
    - "node"
    - "7"
    - "8"
install: npm install
script:
  - npm run-script docs
deploy:
  overwrite: true
  provider: pages
  file_glob: true
  file: docs/*
  local_dir: docs
  skip_cleanup: true
  github_token: $GITHUB_TOKEN
  on:
    repo: joshmarinacci/node-pureimage
    branches:
      only:
        - master
    node_js: '8'

Configure a More Granular Deploy
Configure a More Granular Deploy

Configure the documentation deployment so that it only runs once, rather
than running for every single build job against the different versions of
node.
