Skip to content

ci(dependabot): bump actions/checkout from 3 to 4 (#45) #12

ci(dependabot): bump actions/checkout from 3 to 4 (#45)

ci(dependabot): bump actions/checkout from 3 to 4 (#45) #12

name: docs
on:
push:
branches:
- main
# This job installs dependencies, builds the book, and pushes it to
# the `gh-pages` branch of the same repository.
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
# pip install -e .
pip install mkdocs mkdocs-material mkdocstrings[python]
# Build the book
- name: Build the book
run: |
mkdocs build
# Push the site to github-pages
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./site
github_token: ${{ secrets.GITHUB_TOKEN }}