version: 2 jobs: build: working_directory: ~/ionic-native/ docker: - image: node:7 branches: - only: - cci2 steps: - checkout - run: name: Install node modules command: npm i deployDocs: working_directory: ~/ionic-native/ docker: - image: node:7 branches: - only: - cci2 # set this to master steps: - run: name: Prepare ionic-site repo command: ./scripts/docs/prepare.sh - save_cache: paths: - ~/ionic-site/ - checkout - run: name: Install node modules command: npm i - run: name: Update docs command: ./scripts/docs/update_docs.sh