You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
812 B
36 lines
812 B
workflows:
|
|
version: 2
|
|
my_workflow:
|
|
jobs:
|
|
- build
|
|
- netlify_deploy:
|
|
requires:
|
|
- build
|
|
|
|
version: 2
|
|
jobs:
|
|
build: &shared-config
|
|
docker:
|
|
- image: circleci/node:lts-fermium
|
|
working_directory: ~/repo
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- dependencies-{{ checksum "package.json" }}-v1
|
|
- dependencies-
|
|
- run: yarn install
|
|
- save_cache:
|
|
paths:
|
|
- node_modules
|
|
key: dependencies-{{ checksum "package.json" }}-v1
|
|
|
|
netlify_deploy:
|
|
docker:
|
|
- image: buildpack-deps:trusty
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Netlify Deploy
|
|
command: ./node_modules/.bin/netlify deploy --site $NETLIFY_SITE_ID --auth
|
|
|