message: Add s3 deployments
diff: language: node_js
  sudo: false
  node_js:
  - - 8
  +- 9
  install:
  - yarn
  +- npm i -g travis-ci-cloudfront-invalidation
  script:
  - yarn build
  -
  -cache: yarn
  -
  +cache:
  + - yarn
  deploy:
  - provider: pages
  +- provider: pages
  + local_dir: _book
  + skip_cleanup: true
  + github_token: "$GITHUB_TOKEN"
  + on:
  + repo: metafetish/buttplug
  + branch: master
  +- provider: s3
  + repo: metafetish/buttplug
  + access_key_id: $AWS_ACCESS_KEY
  + secret_access_key: $AWS_SECRET_KEY
  + bucket: docs.buttplug.io
  + region: us-west-1
  + acl: public_read
  local_dir: _book
  skip_cleanup: true
  - github_token: $GITHUB_TOKEN
  + upload-dir: buttplug
  on:
  + repo: metafetish/buttplug
  branch: master
  +after_deploy:
  +- travis-ci-cloudfront-invalidation -a $AWS_ACCESS_KEY -s $AWS_SECRET_KEY -c $AWS_CLOUDFRONT_DIST_ID -i '/buttplug/*' -b $TRAVIS_BRANCH -p $TRAVIS_PULL_REQUEST
  +
  