@ -27,7 +27,7 @@ jobs:
name: Test
command: yarn test
Build Docker:
Build :
docker:
- image: circleci/node:12.9-browsers
steps:
@ -48,12 +48,27 @@ jobs:
root: /tmp
paths:
- dist
Netlify:
working_directory: ~/netlfify
- attach_workspace:
at: /tmp
- run:
name: Deploy on Netlify
command: |
sudo npm install -g --silent netlify-cli
netlify deploy --prod --auth $NETLIFY_AUTH_TOKEN --dir=/tmp/dist --site $NETLIFY_SITE_ID
workflows:
Build_Test_N_Deploy:
jobs:
- Installation
- Test
- Build Docker:
- Build :
requires:
- Netlify:
context: Netlify
- Build