This repository has been archived on 2022-01-02. You can view files and clone it, but cannot push or open issues/pull-requests.
AriaNg/scripts/publish_dailybuild.sh

14 lines
402 B
Bash
Raw Normal View History

2016-07-10 13:02:25 +02:00
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