Browse Source

💚 Fix CI indent and run problems

main
Galimede 6 years ago
parent
commit
95a0e6fc1d
  1. 19
      .circleci/config.yml

19
.circleci/config.yml

@ -1,6 +1,6 @@
version: 2.1
jobs:
build:
install:
docker:
- image: cimg/node:15.5.1-browsers
steps:
@ -23,8 +23,8 @@ jobs:
keys:
- yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }}
- run:
- name: Launch test
- command : yarn test
name: Launch test
command: yarn test
prod-build:
docker:
- image: cimg/node:15.5.1-browsers
@ -34,11 +34,11 @@ jobs:
keys:
- yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }}
- run:
- name: Build for production
- command : yarn run build
name: Build for production
command : yarn run build
- run:
- name: Copy build to workspace
- command: |
name: Copy build to workspace
command: |
ls
cp build/ /tmp/build -r
- store_artifacts:
@ -60,14 +60,13 @@ jobs:
sudo npm install -g --silent netlify-cli
ls /tmp
netlify deploy --prod --auth $NETLIFY_AUTH_TOKEN --dir=/tmp/build --site $NETLIFY_SITE_ID
workflows:
build_deploy:
jobs:
- build
- install
- prod-build:
requires:
- build
- install
- deploy-netlify:
context: netlify_devops_final
requires:
Loading…
Cancel
Save