update circle config

This commit is contained in:
MaysWind 2018-07-09 00:59:55 +08:00
parent 7368a9f571
commit 74841d8a7f
2 changed files with 7 additions and 8 deletions

View file

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

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 $ARIANG_WORKING_DIR/AriaNg-DailyBuild/
git clone https://github.com/mayswind/AriaNg-DailyBuild.git $HOME/AriaNg-DailyBuild/
rm -rf $ARIANG_WORKING_DIR/AriaNg-DailyBuild/*
cp dist/* $ARIANG_WORKING_DIR/AriaNg-DailyBuild/ -r;
rm -rf $HOME/AriaNg-DailyBuild/*
cp dist/* $HOME/AriaNg-DailyBuild/ -r;
cd $ARIANG_WORKING_DIR/AriaNg-DailyBuild/;
cd $HOME/AriaNg-DailyBuild/;
git add -A;
git commit -a -m "daily build #$CIRCLE_SHA1";