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
2016-07-10 19:24:47 +08:00

14 lines
402 B
Bash

if [ $CI == "true" ] && [ $CIRCLE_BRANCH == "master" ]; then
cp dist $CIRCLE_ARTIFACTS/ -r;
git checkout -b gh-pages remotes/origin/gh-pages;
rm -rf css;
rm -rf fonts;
rm -rf js;
rm -rf langs;
rm -rf imgs;
rm -rf views;
rm -f index.html;
cp $CIRCLE_ARTIFACTS/dist/* ./ -r;
git commit -a -m "daily build #$CIRCLE_SHA1" --author="CI <i@mayswind.net>";
git push origin gh-pages;
fi