Skip to content

Commit

Permalink
chore: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Feb 21, 2023
1 parent e5df075 commit 17cdf9d
Show file tree
Hide file tree
Showing 14 changed files with 73 additions and 36 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/angular.cn.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: angular.cn
on:
push:
branches:
- master
# branches:
# - master
paths:
- '.github/workflows/angular.cn.yml'

jobs:
build:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ant.design.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: ant.design
on:
push:
branches:
- master
# branches:
# - master
paths:
- '.github/workflows/ant.design.yml'

jobs:
build:
Expand Down
33 changes: 23 additions & 10 deletions .github/workflows/cn.vuejs.org.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,39 @@
name: cn.vuejs.org
on:
push:
branches:
- master
paths:
- '.github/workflows/cn.vuejs.org.yml'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: "13.x"
registry-url: "https://registry.npmjs.org/"
node-version: 16
registry-url: 'https://registry.npmjs.org'

- name: Get Static
- name: Get Static (Vue 2)
run: |
git clone https://github.com/vuejs/cn.vuejs.org -b gh-pages --single-branch cn.vuejs.org --depth 1
git clone https://github.com/vuejs/v2.cn.vuejs.org -b gh-pages --single-branch v2.cn.vuejs.org --depth 1
- name: Deploy cn.vuejs.org
- name: Deploy (vue2) v2.cn.vuejs.org
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: cn.vuejs.org
publish_dir: ./cn.vuejs.org
publish_branch: v2.cn.vuejs.org
publish_dir: ./v2.cn.vuejs.org

- name: Get Static (Vue 3)
run: |
git clone https://github.com/vuejs-translations/docs-zh-cn.git -b main --single-branch v3.cn.vuejs.org --depth 1
npm i
npm run build
- name: Deploy (vue3) v3.cn.vuejs.org
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: v3.cn.vuejs.org
publish_dir: ./v3.cn.vuejs.org
4 changes: 2 additions & 2 deletions .github/workflows/deno-manual-cn.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: deno-manual-cn
on:
push:
branches:
- master
paths:
- '.github/workflows/deno-manual-cn.yml'

jobs:
build:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/element-react.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: element-react
on:
push:
branches:
- master
# branches:
# - master
paths:
- '.github/workflows/element-react.yml'

jobs:
build:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/element.eleme.io.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: element.eleme.io
on:
push:
branches:
- master
# branches:
# - master
paths:
- '.github/workflows/element.eleme.io.yml'

jobs:
build:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/eslint.org.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: eslint.org
on:
push:
branches:
- master
# branches:
# - master
paths:
- '.github/workflows/eslint.org.yml'

jobs:
build:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/expressjs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: expressjs
on:
push:
branches:
- master
# branches:
# - master
paths:
- '.github/workflows/expressjs.yml'

jobs:
build:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/jestjs.io.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: jestjs.io
on:
push:
branches:
- master
# branches:
# - master
paths:
- '.github/workflows/jestjs.io.yml'

jobs:
build:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/koajs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: koajs
on:
push:
branches:
- master
# branches:
# - master
paths:
- '.github/workflows/koajs.yml'

jobs:
build:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/reactjs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: reactjs
on:
push:
branches:
- master
# branches:
# - master
paths:
- '.github/workflows/reactjs.yml'

jobs:
build:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/sequelize.org.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: sequelize.org
on:
push:
branches:
- master
# branches:
# - master
paths:
- '.github/workflows/sequelize.org.yml'

jobs:
build:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/typeorm.github.io.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: typeorm.github.io
on:
push:
branches:
- master
# branches:
# - master
paths:
- '.github/workflows/typeorm.github.io.yml'

jobs:
build:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/typescriptlang.org.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: typescriptlang.org
on:
push:
branches:
- master
# branches:
# - master
paths:
- '.github/workflows/typescriptlang.org.yml'

jobs:
build:
Expand Down

0 comments on commit 17cdf9d

Please sign in to comment.