Skip to content

Migrate actions-rs/* to dtolnay/rust-toolchain (#308) #115

Migrate actions-rs/* to dtolnay/rust-toolchain (#308)

Migrate actions-rs/* to dtolnay/rust-toolchain (#308) #115

name: Deploy User Guide
on:
push:
branches:
- main
jobs:
deploy-user-guide:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@stable
id: toolchain
- name: Set Rust toolchain override
run: rustup override set ${{ steps.toolchain.outputs.name }}
- name: Build and Test User Guide
run: |
curl -L https://github.com/rust-lang/mdBook/releases/download/v0.4.34/mdbook-v0.4.34-x86_64-unknown-linux-gnu.tar.gz | tar xz
./mdbook build book
./mdbook test book
- name: Deploy User Guide
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: book/book