From b8dbc5d16ea7400425100dd1ce9e88ec4ab9978d Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Wed, 8 Aug 2018 11:18:52 +0800 Subject: [PATCH] chore: add auto-publish script --- aio/publish.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 aio/publish.sh diff --git a/aio/publish.sh b/aio/publish.sh new file mode 100755 index 0000000000..a1bb8bf566 --- /dev/null +++ b/aio/publish.sh @@ -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 -