version: 2
defaults: &defaults
docker:
- image: circleci/node:6.14-browsers
working_directory: ~/AriaNg
jobs:
build:
<<: *defaults
steps:
- checkout
- run: npm install
- run: sudo npm install -g bower
- run: sudo npm install -g gulp
- run: gulp clean build
- save_cache:
key: v1-ariang-{{ .Environment.CIRCLE_SHA1 }}
paths:
- ~/AriaNg
publish_daily_build:
- restore_cache:
- add_ssh_keys:
fingerprints:
- run: bash ./scripts/publish_dailybuild.sh
workflows:
build_and_publish:
- build
- publish_daily_build:
requires:
filters:
branches:
only: master