This commit is contained in:
zhouliujun 2019-12-13 09:50:32 +08:00
parent 5606241831
commit c702922880

11
t.sh
View File

@ -10,10 +10,15 @@ npm publish;
# 更新gh-pages
git branch -D gh-pages;
echo "删除gh-pages";
git checkout -b gh-pages;
echo "创建并切换到gh-pages";
git add -f dist;
git commit -m 'create gh-pages';
@ -22,5 +27,9 @@ git push origin -d gh-pages;
git subtree push --prefix dist origin gh-pages;
echo "已推送gh-pages";
# 推送完成后切换回master
git checkout master;
git checkout master;
echo "切换回master";