Adding deploy scripting
This commit is contained in:
parent
bbdacca1da
commit
37af8c24c8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user