Update book.yml
This commit is contained in:
parent
2171c2c2fa
commit
6e4e17405d
24
.github/workflows/book.yml
vendored
24
.github/workflows/book.yml
vendored
|
@ -31,25 +31,5 @@ jobs:
|
||||||
keepFiles: true
|
keepFiles: true
|
||||||
env:
|
env:
|
||||||
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||||
PUBLISH_BRANCH: gh-pages-en
|
PUBLISH_BRANCH: gh-pages
|
||||||
PUBLISH_DIR: docs/book/gh-pages
|
PUBLISH_DIR: docs/en/gh-pages
|
||||||
deploy_zh_CN:
|
|
||||||
name: Deploy book on gh-pages
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Install mdBook
|
|
||||||
uses: peaceiris/actions-mdbook@v1
|
|
||||||
- name: Render book
|
|
||||||
run: |
|
|
||||||
mdbook build -d gh-pages-zh-CN docs/zh-CN
|
|
||||||
- name: Deploy
|
|
||||||
uses: peaceiris/actions-gh-pages@v2.5.1
|
|
||||||
with:
|
|
||||||
emptyCommits: false
|
|
||||||
keepFiles: true
|
|
||||||
env:
|
|
||||||
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
|
||||||
PUBLISH_BRANCH: gh-pages-zh-CN
|
|
||||||
PUBLISH_DIR: docs/book/gh-pages
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user