update circle config
This commit is contained in:
parent
7368a9f571
commit
74841d8a7f
|
@ -3,9 +3,7 @@ version: 2
|
||||||
defaults: &defaults
|
defaults: &defaults
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:6.14-browsers
|
- image: circleci/node:6.14-browsers
|
||||||
environment:
|
working_directory: ~/AriaNg
|
||||||
- ARIANG_WORKING_DIR: "~/workflows"
|
|
||||||
working_directory: ~/workflows/AriaNg
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -20,12 +18,13 @@ jobs:
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: v1-ariang-{{ .Environment.CIRCLE_SHA1 }}
|
key: v1-ariang-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
paths:
|
paths:
|
||||||
- ~/workflows/AriaNg
|
- ~/AriaNg
|
||||||
publish_daily_build:
|
publish_daily_build:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
steps:
|
steps:
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: v1-ariang-{{ .Environment.CIRCLE_SHA1 }}
|
key: v1-ariang-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
|
- add_ssh_keys
|
||||||
- run: bash ./scripts/publish_dailybuild.sh
|
- run: bash ./scripts/publish_dailybuild.sh
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
|
|
|
@ -3,12 +3,12 @@ if [ $CI == "true" ] && [ $CIRCLE_BRANCH == "master" ]; then
|
||||||
git config --global user.email "CircleCI";
|
git config --global user.email "CircleCI";
|
||||||
|
|
||||||
echo "Publishing daily build...";
|
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/*
|
rm -rf $HOME/AriaNg-DailyBuild/*
|
||||||
cp dist/* $ARIANG_WORKING_DIR/AriaNg-DailyBuild/ -r;
|
cp dist/* $HOME/AriaNg-DailyBuild/ -r;
|
||||||
|
|
||||||
cd $ARIANG_WORKING_DIR/AriaNg-DailyBuild/;
|
cd $HOME/AriaNg-DailyBuild/;
|
||||||
|
|
||||||
git add -A;
|
git add -A;
|
||||||
git commit -a -m "daily build #$CIRCLE_SHA1";
|
git commit -a -m "daily build #$CIRCLE_SHA1";
|
||||||
|
|
Reference in a new issue