machine:
  node:
    version: stable
  environment:
    PATH: ${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin:${HOME}/.yarn/bin
dependencies:
  pre:
    - curl -o- -L https://yarnpkg.com/install.sh | bash
  override:
    - yarn cache clean
    - bundle install
    - yarn install --force
    - bower install
general:
  branches:
    only:
      - master
      - production
deployment:
  staging:
    branch: master
    commands:
      - gulp build && gulp publish
      - netlify deploy --path ./site --site-id seaboard-stage --access-token ${NETLIFY_TOKEN}

  approval_staging:
    branch: stage_for_approval
    commands:
      - gulp build && gulp publish
      - netlify deploy --path ./site --site-id seaboard-approvals --access-token ${NETLIFY_TOKEN}

  production:
    branch: production
    commands:
      - gulp build && gulp publish
      - s3_website push

machine:
  node:
    version: stable
  environment:
    PATH: ${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin:${HOME}/.yarn/bin
dependencies:
  pre:
    - curl -o- -L https://yarnpkg.com/install.sh | bash
  override:
    - yarn cache clean
    - bundle install
    - yarn install --force
    - bower install
general:
  branches:
    only:
      - master
      - stage_for_approval
      - production
deployment:
  staging:
    branch: master
    commands:
      - gulp build && gulp publish
      - netlify deploy --path ./site --site-id seaboard-stage --access-token ${NETLIFY_TOKEN}

  approval_staging:
    branch: stage_for_approval
    commands:
      - gulp build && gulp publish
      - netlify deploy --path ./site --site-id seaboard-approvals --access-token ${NETLIFY_TOKEN}

  production:
    branch: production
    commands:
      - gulp build && gulp publish
      - s3_website push

Whitelist stage for approval branch.
Whitelist stage for approval branch.
