This repository has been archived on 2022-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
AriaNg/.circleci/config.yml
2021-02-13 23:27:53 +08:00

39 lines
819 B
YAML

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