Added mdbook to the process #14
Workflow file for this run
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: mdBook PR Preview | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| paths: | |
| - "docs/**" | |
| - ".github/workflows/preview-mdbook.yml" | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| concurrency: preview-${{ github.ref }} | |
| jobs: | |
| deploy-preview: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install mdBook | |
| run: cargo install mdbook | |
| - name: Build mdBook | |
| run: mdbook build docs | |
| - name: Generate book.toml for preview | |
| run: ./tools/gen_book_toml.sh preview ${{ github.event.number }} | |
| - name: Deploy PR Preview | |
| uses: rossjrw/pr-preview-action@v1.4.7 | |
| with: | |
| source-dir: docs/book | |
| umbrella-dir: docs/pr-preview |