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/scripts/publish_dailybuild.sh
2018-07-09 01:31:07 +08:00

21 lines
538 B
Bash

if [ $CI == "true" ] && [ $CIRCLE_BRANCH == "master" ]; then
git config --global user.name "CircleCI";
git config --global user.email "CircleCI";
ssh -o StrictHostKeyChecking=no git@github.com
echo "Publishing daily build...";
git clone git@github.com:mayswind/AriaNg-DailyBuild.git $HOME/AriaNg-DailyBuild/
rm -rf $HOME/AriaNg-DailyBuild/*
cp dist/* $HOME/AriaNg-DailyBuild/ -r;
cd $HOME/AriaNg-DailyBuild/;
git add -A;
git commit -a -m "daily build #$CIRCLE_SHA1";
git push origin master;
echo "Done.";
fi