Browse Source

👷 update config.yml

main
lamya-rey 6 years ago
parent
commit
5c6318d7e7
  1. 15
      .circleci/config.yml

15
.circleci/config.yml

@ -14,7 +14,7 @@ jobs:
paths: paths:
- node_modules - node_modules
key: dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }} key: dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }}
server-build: server-build:
docker: docker:
- image: circleci/node:12 - image: circleci/node:12
@ -43,12 +43,11 @@ jobs:
steps: steps:
- attach_workspace: - attach_workspace:
at: /tmp at: /tmp
- run:
name: install netlify
command: sudo npm install netlify-cli -g
- run:
name: Deploy app
command: netlify deploy --prod --auth $NETLIFY_AUTH_TOKEN --dir=/tmp/dist --site $NETLIFY_SITE_ID
- run:
name: install netlify and Deploy app
command: |
sudo npm install netlify-cli -g
netlify deploy --prod --auth $NETLIFY_AUTH_TOKEN --dir=/tmp/dist --site $NETLIFY_SITE_ID
docker-build-and-push: docker-build-and-push:
docker: docker:
@ -74,7 +73,7 @@ workflows:
build-deploy: build-deploy:
jobs: jobs:
- build - build
- server-deploy:
- server-build:
requires: requires:
- build - build
- server-deploy: - server-deploy:

Loading…
Cancel
Save