Adding deploy scripting

This commit is contained in:
Jeff Avallone 2018-02-11 09:22:37 -05:00
parent bbdacca1da
commit 37af8c24c8

View File

@ -23,11 +23,19 @@ jobs:
- node_modules - node_modules
key: v1-dependencies-{{ checksum "package.json" }} key: v1-dependencies-{{ checksum "package.json" }}
- run: yarn test - run:
name: Run tests
command: yarn test
- run: yarn build - run:
name: Build site
command: yarn build
# TODO: Deploy to preview.regexper.com - run:
name: Deploy to S3
command: |
pip install awscli --upgrade --user
aws s3 sync build s3://$DEPLOY_BUCKET/ --delete
workflows: workflows:
version: 2 version: 2