Skip to content

chore: another version test #5

chore: another version test

chore: another version test #5

Workflow file for this run

name: Build docs
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy-docs:
name: Deploy documentation
runs-on: ubuntu-latest
steps:
# Checkout this repository and cd to project root, set up python/pdm and cache
- 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
- uses: pdm-project/setup-pdm@v3
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
# Build and push docs to gh-pages branch (triggers doc site publish action)
- run: pdm sync
- run: pdm run mkdocs gh-deploy --force