2018-08-07 23:18:52 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -x
|
2018-10-24 21:54:55 -04:00
|
|
|
set -e
|
2018-08-07 23:18:52 -04:00
|
|
|
|
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
|
2018-09-20 02:45:44 -04:00
|
|
|
ts-node ./tools/translator/bin/ssr.ts
|
2018-11-08 20:42:48 -05:00
|
|
|
|
|
|
|
rm -fr ng-docs.github.io
|
|
|
|
|
2018-11-08 19:52:30 -05:00
|
|
|
git clone git@github.com:ng-docs/ng-docs.github.io.git
|
|
|
|
|
|
|
|
cp -r dist/* ./ng-docs.github.io/
|
|
|
|
|
|
|
|
cd ./ng-docs.github.io
|
2018-09-15 18:43:43 -04:00
|
|
|
|
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}"
|
2018-08-07 23:18:52 -04:00
|
|
|
|
2018-09-23 23:01:10 -04:00
|
|
|
git push
|
2018-08-07 23:18:52 -04:00
|
|
|
|
|
|
|
cd -
|