Skip to content

Commit

Permalink
chore: CI www sequence (#15808)
Browse files Browse the repository at this point in the history
* Build _then_ deploy

* install netlify-cli locally and run from node_modules dir
  • Loading branch information
m-allanson committed Jul 16, 2019
1 parent 3629d75 commit 8790aed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,10 @@ jobs:
- restore_cache:
key: www_public_dir_1
- run:
command: yarn global add netlify-cli
command: yarn add netlify-cli
working_directory: ~/project/www
- run:
command: netlify deploy --dir=public --auth="$NETLIFY_ACCESS_TOKEN" --site="$NETLIFY_SITE_ID" --message "Nightly build deployed from job $CIRCLE_BUILD_URL" # --prod
command: node_modules/.bin/netlify deploy --dir=public --auth="$NETLIFY_ACCESS_TOKEN" --site="$NETLIFY_SITE_ID" --message "Nightly build deployed from job $CIRCLE_BUILD_URL" # --prod
working_directory: ~/project/www

workflows:
Expand Down Expand Up @@ -314,4 +314,6 @@ workflows:
# Check CircleCI web ui for context details (env vars)
context: build_www
- deploy_www:
requires:
- build_www
context: build_www

0 comments on commit 8790aed

Please sign in to comment.