diff --git a/.circleci/config.yml b/.circleci/config.yml index 3ac2f3d..d2ba137 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: diff --git a/scripts/publish_dailybuild.sh b/scripts/publish_dailybuild.sh index 4edd916..5d57e80 100644 --- a/scripts/publish_dailybuild.sh +++ b/scripts/publish_dailybuild.sh @@ -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";