From 3e124f1807cb6f32a9c443d344309a4f0a947d54 Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Tue, 28 Mar 2017 20:13:44 -0400 Subject: [PATCH] update docs only master --- circle.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/circle.yml b/circle.yml index 75d6abfcd..e568b213e 100644 --- a/circle.yml +++ b/circle.yml @@ -24,12 +24,18 @@ jobs: name: Install node modules command: npm i - save_cache: - key: node_modules_{{ checksum "package.json" }} # used cached node_modules if package.json didn't change + key: node_modules_{{ checksum "package.json" }} paths: - ~/ionic-native/node_modules/ - run: name: Run tslint command: npm run lint - - run: + - deploy: name: Update docs - command: ./scripts/docs/update_docs.sh + command: | + if [ "${CIRCLE_BRANCH}" == "cci2" ]; then + # update docs since we're on master + ./scripts/docs/update_docs.sh + else + echo "We are on ${CIRCLE_BRANCH} branch, not going to update docs" + fi