chore: 根据原文设置提交信息

This commit is contained in:
Zhicheng Wang 2018-09-24 10:56:38 +08:00
parent 7b2200ff5b
commit 2bcc2a788c

View File

@ -6,6 +6,9 @@ nvm use 8
set -x set -x
commitSha=$(git rev-parse --short HEAD)
commitMessage=$(git log --oneline -n 1)
cd `dirname $0` cd `dirname $0`
yarn build yarn build
@ -15,8 +18,9 @@ cd ../../ng-docs.github.io
cp index.html 404.html cp index.html 404.html
git add . git add .
git commit -am "publish" git commit --allow-empty -am "${commitMessage}"
git tag "${commitSha}"
git push git push --tags
cd - cd -