Skip to content

Commit

Permalink
Update angular.cn
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 31, 2020
1 parent 07426cf commit 924a5b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/angular.cn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,16 @@ jobs:
steps:
- uses: actions/setup-node@v1
with:
node-version: "13.x"
node-version: "12.x"
registry-url: "https://registry.npmjs.org/"

- name: Get Static
run: |
git clone https://github.com/angular/angular-cn -b master --single-branch angular.cn --depth 1
# Build v2
- name: Build website v2
run: |
cd angular.cn
npm install
node ./node_module/.bin/gulp build-compile --lang="(ts|js)"
git clone https://github.com/ng-docs/preview.angular.cn.git -b master --single-branch angular.cn --depth 1
- name: Deploy angular.cn
uses: peaceiris/[email protected]
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: angular.cn
PUBLISH_DIR: ./angular.cn/www
PUBLISH_DIR: ./angular.cn
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

通过 master 分支 push 事件,或者通过 tag 打版本来触发 Actions 更新仓库。

静态网站 | 状态
静态网站 | 发布状态
---- | ----
angular.cn | ![angular.cn](https://github.com/jaywcjlove/doc-static/workflows/angular.cn/badge.svg)
ant.design | ![ant.design](https://github.com/jaywcjlove/doc-static/workflows/ant.design/badge.svg)
deno-manual-cn | ![deno-manual-cn](https://github.com/jaywcjlove/doc-static/workflows/deno-manual-cn/badge.svg)
element.eleme.io | ![element.eleme.io](https://github.com/jaywcjlove/doc-static/workflows/element.eleme.io/badge.svg)
Expand Down

0 comments on commit 924a5b8

Please sign in to comment.