mirror of https://gitee.com/antv-l7/antv-l7
32 lines
606 B
Bash
32 lines
606 B
Bash
|
|
if [ -d "./site_temp" ]; then
|
|
rm -rf ./site_temp
|
|
fi
|
|
|
|
mkdir ./site_temp
|
|
cd ./site_temp
|
|
|
|
git clone https://code.alipay.com/datavis/l7-site.git --depth=1
|
|
|
|
cd l7-site
|
|
echo `pwd`
|
|
|
|
feat_name=feat_update_site_`date +%Y%m%d%M%S`;
|
|
echo $feat_name
|
|
git checkout -b $feat_name
|
|
|
|
cd ../../
|
|
echo `pwd`
|
|
rsync -av --exclude .cache --exclude .dumi/tmp-production --exclude .dumi/tmp --exclude node_modules --exclude public --exclude dist ./packages/site/ ./site_temp/l7-site/
|
|
|
|
cd ./site_temp/l7-site
|
|
|
|
git add .
|
|
|
|
|
|
git commit -m 'docs: 更新网站'
|
|
|
|
git push --set-upstream origin $feat_name
|
|
|
|
echo '代码已提交'
|