update circle config

This commit is contained in:
MaysWind 2018-07-09 00:35:35 +08:00
parent 2e32996825
commit 7368a9f571
2 changed files with 8 additions and 6 deletions

View file

@ -3,7 +3,9 @@ version: 2
defaults: &defaults
docker:
- image: circleci/node:6.14-browsers
working_directory: ~/ariang
environment:
- ARIANG_WORKING_DIR: "~/workflows"
working_directory: ~/workflows/AriaNg
jobs:
build:
@ -18,7 +20,7 @@ jobs:
- save_cache:
key: v1-ariang-{{ .Environment.CIRCLE_SHA1 }}
paths:
- ~/ariang
- ~/workflows/AriaNg
publish_daily_build:
<<: *defaults
steps:

View file

@ -3,12 +3,12 @@ if [ $CI == "true" ] && [ $CIRCLE_BRANCH == "master" ]; then
git config --global user.email "CircleCI";
echo "Publishing daily build...";
git clone https://github.com/mayswind/AriaNg-DailyBuild.git $CIRCLE_ARTIFACTS/AriaNg-DailyBuild/
git clone https://github.com/mayswind/AriaNg-DailyBuild.git $ARIANG_WORKING_DIR/AriaNg-DailyBuild/
rm -rf $CIRCLE_ARTIFACTS/AriaNg-DailyBuild/*
cp dist/* $CIRCLE_ARTIFACTS/AriaNg-DailyBuild/ -r;
rm -rf $ARIANG_WORKING_DIR/AriaNg-DailyBuild/*
cp dist/* $ARIANG_WORKING_DIR/AriaNg-DailyBuild/ -r;
cd $CIRCLE_ARTIFACTS/AriaNg-DailyBuild/;
cd $ARIANG_WORKING_DIR/AriaNg-DailyBuild/;
git add -A;
git commit -a -m "daily build #$CIRCLE_SHA1";