Browse Source

💚 add server deploy

main
Julien Dudek 6 years ago
parent
commit
d56c949f1c
  1. 20
      .circleci/config.yml
  2. 3
      .gitignore

20
.circleci/config.yml

@ -71,6 +71,23 @@ jobs:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
deploy:
docker:
- image: circleci/node:dubnium-browsers
working_directory: ~/repo
steps:
- checkout
- attach_workspace:
at: /tmp
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run:
name: Deploy app
command: npx netlify-cli deploy --auth $NETLIFY_AUTH_TOKEN --site $NETLIFY_SITE_ID --dir /tmp/server --prod
workflows:
version: 2
build-test-and-deploy:
@ -79,3 +96,6 @@ workflows:
- build:
requires:
- install
- deploy:
requires:
- build

3
.gitignore

@ -22,3 +22,6 @@ yarn-error.log*
# Coverage Reports
coverage
# Local Netlify folder
.netlify
Loading…
Cancel
Save