
machine:
  node:
    version: 8.9.3

dependencies:
  pre:
    - bash ./circleci/set-configs.sh

test:
  override:
    - npm run build
    - npm run test

deployment:
  production:
    branch: deploy
    commands:
      - npm run build
      - aws s3 sync build/ s3://cookbook-club-site/


machine:
  node:
    version: 8.9.3

dependencies:
  pre:
    - bash ./circleci/set-configs.sh

test:
  override:
    - npm run build
    - npm run test

deployment:
  production:
    branch: deploy
    commands:
      - npm run build
      - aws s3 sync build/ s3://cookbook-club-site/ --delete --cache-control max-age=31536000,public

Add cache-control header to S3 assets
feat: Add cache-control header to S3 assets
