Skip to content

Instantly share code, notes, and snippets.

@sebassdc
Created October 7, 2020 20:30
Show Gist options
  • Save sebassdc/03e808e5b1859ff8bc96cca61883f107 to your computer and use it in GitHub Desktop.
Save sebassdc/03e808e5b1859ff8bc96cca61883f107 to your computer and use it in GitHub Desktop.
Automatic build with CRA and aws s3
version: 2.1
jobs:
deploy:
docker:
- image: cimg/node:12.18.4
steps:
- checkout
- node/install-packages
- run: npm run build
- aws-s3/sync:
from: build
to: 's3://example.com'
orbs:
aws-s3: circleci/[email protected]
node: circleci/[email protected]
workflows:
deploy:
jobs:
- deploy:
filters:
branches:
only:
- main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment