From 2bcc2a788c2e56f63023126aaa68b0643b9ecf8b Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Mon, 24 Sep 2018 10:56:38 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=A0=B9=E6=8D=AE=E5=8E=9F=E6=96=87?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=8F=90=E4=BA=A4=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aio/deploy-cn.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/aio/deploy-cn.sh b/aio/deploy-cn.sh index c8ed69ea8b..23a89443a6 100755 --- a/aio/deploy-cn.sh +++ b/aio/deploy-cn.sh @@ -6,6 +6,9 @@ nvm use 8 set -x +commitSha=$(git rev-parse --short HEAD) +commitMessage=$(git log --oneline -n 1) + cd `dirname $0` yarn build @@ -15,8 +18,9 @@ cd ../../ng-docs.github.io cp index.html 404.html git add . -git commit -am "publish" +git commit --allow-empty -am "${commitMessage}" +git tag "${commitSha}" -git push +git push --tags cd -