- Streamline MkDocs navigation structure - Reduce complexity in GitHub Actions documentation workflow - Update documentation dependencies and requirements - Simplify site name and deployment configuration
26 lines
636 B
YAML
26 lines
636 B
YAML
name: Deploy Documentation
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'docs/**'
|
|
- 'mkdocs.yml'
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.x'
|
|
cache: 'pip'
|
|
- run: pip install -r docs/requirements.txt
|
|
- name: Deploy Documentation
|
|
run: |
|
|
git config --global user.name "github-actions[bot]"
|
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
mkdocs gh-deploy --force |