From c7029228804221141008e973459b7b68da5d9ad3 Mon Sep 17 00:00:00 2001 From: zhouliujun <1096432931@qq.com> Date: Fri, 13 Dec 2019 09:50:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- t.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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