Browse Source

👷 update congif.yml

main
lamya-rey 6 years ago
parent
commit
dcb868b9bc
  1. 42
      .circleci/config.yml

42
.circleci/config.yml

@ -15,37 +15,6 @@ jobs:
- node_modules
key: dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }}
lint:
docker:
- image: circleci/node:dubnium-browsers
working_directory: ~/repo
steps:
- checkout
- restore_cache:
key: dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }}
- run: yarn lint
- run: yarn format:check
server-doc-build:
docker:
- image: circleci/node:dubnium-browsers
working_directory: ~/repo
steps:
- checkout
- restore_cache:
key: dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }}
- run: yarn doc:build
- run:
name: Copy deployment artifacts to workspace
command: |
cp doc-server/ /tmp/server-doc -r
- store_artifacts:
path: /tmp/server-doc
- persist_to_workspace:
root: /tmp
paths:
- server-doc
server-doc-deploy:
docker:
- image: circleci/node:dubnium-browsers
@ -55,7 +24,7 @@ jobs:
command: sudo npm install netlify-cli -g
- run:
name: Deploy app
command: netlify deploy --prod --auth $NETLIFY_AUTH_TOKEN --dir /tmp/server-doc --site $NETLIFY_SITE_ID
command: netlify deploy --prod --auth $NETLIFY_AUTH_TOKEN --dir /repo --site $NETLIFY_SITE_ID
docker-build-and-push:
docker:
@ -81,16 +50,9 @@ workflows:
build-deploy:
jobs:
- build
- lint:
requires:
- build
- server-doc-build:
requires:
-build
-lint
- server-doc-deploy:
requires:
- server-doc-build
- build
- docker-build-and-push:
requires:
- build

Loading…
Cancel
Save