I really don't know how to do links do I #12
This file contains 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 Book | |
on: | |
push: | |
branches: | |
- main | |
env: | |
MDBOOK_OUTPUT__HTML__SITE_URL: /mdbook-typst-doc/main/ | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # To push a branch | |
pages: write # To push to a GitHub Pages site | |
id-token: write # To update the deployment status | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: cargo build | |
- uses: peaceiris/actions-mdbook@v1 | |
with: | |
mdbook-version: "0.4.37" | |
- uses: typst-community/setup-typst@v3 | |
- name: Build Book | |
run: | | |
cd example | |
mdbook build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./example/book | |
destination_dir: main |