diff --git a/t.sh b/t.sh index 6f00973..cd858fc 100644 --- a/t.sh +++ b/t.sh @@ -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; \ No newline at end of file +git checkout master; + +echo "切换回master"; \ No newline at end of file