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

39 lines
819 B
YAML
Raw Normal View History

2018-07-08 17:22:06 +02:00
version: 2
defaults: &defaults
docker:
2021-02-13 15:33:10 +01:00
- image: circleci/node:10.23-browsers
2018-07-08 18:59:55 +02:00
working_directory: ~/AriaNg
2018-07-08 17:22:06 +02:00
jobs:
build:
<<: *defaults
steps:
- checkout
- run: npm install
2018-07-08 17:36:16 +02:00
- run: sudo npm install -g gulp
2018-07-08 17:22:06 +02:00
- run: gulp clean build
2018-07-08 18:15:39 +02:00
- save_cache:
key: v1-ariang-{{ .Environment.CIRCLE_SHA1 }}
paths:
2018-07-08 18:59:55 +02:00
- ~/AriaNg
2018-07-08 17:22:06 +02:00
publish_daily_build:
<<: *defaults
steps:
2018-07-08 18:15:39 +02:00
- restore_cache:
key: v1-ariang-{{ .Environment.CIRCLE_SHA1 }}
2018-07-08 19:01:56 +02:00
- add_ssh_keys:
fingerprints:
2018-07-08 17:22:06 +02:00
- run: bash ./scripts/publish_dailybuild.sh
workflows:
version: 2
build_and_publish:
jobs:
- build
- publish_daily_build:
requires:
- build
filters:
branches:
only: master