Skip to content

40 mkdocs domain config (#41) #12

40 mkdocs domain config (#41)

40 mkdocs domain config (#41) #12

Workflow file for this run

# Deploy mkdocs site to GitHub Pages
name: pages
on:
# Runs on pushes targeting the default branch
push:
branches:
- main
# Only run if docs or self updated
paths:
- docs/**
- .github/workflows/pages.yml
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11
architecture: 'x64'
- name: Install Dependencies
run: |
cd docs
pip install pdm
pdm install --frozen-lockfile --production
- name: Build Docs and Deploy
run: |
cd docs
pdm run deploy-pages