chore: add auto-publish script
This commit is contained in:
parent
f6ad6c267e
commit
b8dbc5d16e
18
aio/publish.sh
Executable file
18
aio/publish.sh
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
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
|
||||||
|
git add .
|
||||||
|
git commit -am "publish"
|
||||||
|
|
||||||
|
git push
|
||||||
|
|
||||||
|
cd -
|
Loading…
x
Reference in New Issue
Block a user