Skip to content

loose file

loose file #28

Workflow file for this run

name: Deploy mdBook Documentation
on:
push:
branches:
- main # Change this to your default branch if different
paths:
- 'docs/**' # Only trigger when docs are updated
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
# Single deploy job since we're just deploying
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Build with mdBook
run: mdbook build docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/book
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4