Browse Source

fix build 💚 & add netlify 🔧

main
Gautier couture 6 years ago
parent
commit
6f988abdb1
  1. 21
      .circleci/config.yml

21
.circleci/config.yml

@ -27,7 +27,7 @@ jobs:
name: Test name: Test
command: yarn test command: yarn test
Build Docker:
Build :
docker: docker:
- image: circleci/node:12.9-browsers - image: circleci/node:12.9-browsers
steps: steps:
@ -48,12 +48,27 @@ jobs:
root: /tmp root: /tmp
paths: paths:
- dist - dist
Netlify:
docker:
- image: circleci/node:12.9-browsers
working_directory: ~/netlfify
steps:
- 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: workflows:
Build_Test_N_Deploy: Build_Test_N_Deploy:
jobs: jobs:
- Installation - Installation
- Test - Test
- Build Docker:
- Build :
requires: requires:
- Installation - Installation
- Netlify:
context: Netlify
requires:
- Build
Loading…
Cancel
Save