Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork499
Update book.yml#166
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
name:Book | |
on: | |
push: | |
branches: | |
-d | |
jobs: | |
deploy_en: | |
name:Deploy book on gh-pages | |
runs-on:ubuntu-22.04 | |
steps: | |
-name:Checkout | |
uses:actions/checkout@v4 | |
-name:Install mdBook | |
uses:peaceiris/actions-mdbook@v1 | |
-name:Render book | |
run:| | |
mdbook build -d gh-pages docs/en | |
mdbook build -d gh-pages docs/zh-CN | |
mkdir gh-pages | |
mv docs/en/gh-pages gh-pages/en | |
mv docs/zh-CN/gh-pages gh-pages/zh-CN | |
mv docs/index.html gh-pages | |
-name:Deploy | |
uses:peaceiris/actions-gh-pages@v4 | |
with: | |
github_token:${{ secrets.GITHUB_TOKEN }} | |
allow_empty_commit:true | |
keep_files:false | |
publish_dir:gh-pages | |
publish_branch:gh-pages |