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 ca8c174 commit 14d786e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/cn.vuejs.org.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,3 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
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:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: v3.cn.vuejs.org
publish_dir: ./v3.cn.vuejs.org
28 changes: 28 additions & 0 deletions .github/workflows/v3.cn.vuejs.org.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: cn.vuejs.org
on:
push:
paths:
- '.github/workflows/v3.cn.vuejs.org.yml'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.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:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: v3.cn.vuejs.org
publish_dir: ./v3.cn.vuejs.org

0 comments on commit 14d786e

Please sign in to comment.