angular-docs-cn/aio/deploy-cn.sh

23 lines
263 B
Bash
Executable File

#!/usr/bin/env bash
. ~/.nvm/nvm.sh
nvm use 8
set -x
cd `dirname $0`
yarn build
ts-node ./tools/translator/bin/ssr.ts
cp -r dist/* ../../ng-docs.github.io/
cd ../../ng-docs.github.io
cp index.html 404.html
git add .
git commit -am "publish"
git push
cd -