angular-cn/aio/publish.sh

25 lines
339 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
cd `dirname $0`
yarn build
rm -fr ../../ng-docs.github.io/*
cp -r dist/* ../../ng-docs.github.io
cd ../../ng-docs.github.io
cp index.html 404.html
echo v6.angular.live > CNAME
2018-08-15 02:08:37 -04:00
echo angular.cn >> CNAME
echo www.angular.cn >> CNAME
2018-08-07 23:18:52 -04:00
git add .
git commit -am "publish"
git push
cd -