Initial commit #11
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: Deploy mdBook | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
pages: write | |
id-token: write | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Rust (rustup) | |
run: rustup update stable --no-self-update && rustup default stable | |
- name: Install mdBook | |
run: cargo install mdbook | |
- name: Build doc | |
run: mdbook build doc | |
- name: Configure GitHub Pages | |
uses: actions/configure-pages@v5 | |
- name: Upload Pages artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: doc/book | |
- name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v4 |