angular-cn/aio/deploy-cn.sh

27 lines
397 B
Bash
Raw Normal View History

2018-08-07 23:18:52 -04:00
#!/usr/bin/env bash
2018-08-24 04:07:39 -04:00
. ~/.nvm/nvm.sh
nvm use 8
2018-08-07 23:18:52 -04:00
set -x
2018-09-23 22:56:38 -04:00
commitSha=$(git rev-parse --short HEAD)
commitMessage=$(git log --oneline -n 1)
2018-08-07 23:18:52 -04:00
cd `dirname $0`
yarn build
ts-node ./tools/translator/bin/ssr.ts
cp -r dist/* ../../ng-docs.github.io/
2018-08-07 23:18:52 -04:00
cd ../../ng-docs.github.io
2018-08-07 23:18:52 -04:00
cp index.html 404.html
git add .
2018-09-23 22:56:38 -04:00
git commit --allow-empty -am "${commitMessage}"
git tag "${commitSha}"
2018-08-07 23:18:52 -04:00
2018-09-23 22:56:38 -04:00
git push --tags
2018-08-07 23:18:52 -04:00
cd -