Skip to content

Merge pull request #204 from chengr4/ch09-enhance-reading-x #333

Merge pull request #204 from chengr4/ch09-enhance-reading-x

Merge pull request #204 from chengr4/ch09-enhance-reading-x #333

Workflow file for this run

name: Rust Book
on:
push:
branches:
- zh_tw
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install mdbook
run: |
mkdir mdbook
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.21/mdbook-v0.4.21-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
echo `pwd`/mdbook >> $GITHUB_PATH
- name: Generate book
run: mdbook build
# HTML publication as Github Page
- name: Publish HTML
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book