Skip to content

Merge pull request #193 from chengr4/zh_tw #324

Merge pull request #193 from chengr4/zh_tw

Merge pull request #193 from chengr4/zh_tw #324

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