Skip to content

Update

Update #6

name: Deploy Documentation
on:
push:
branches:
- 'feature/wiki-gh-pages'
tags:
- '**'
jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Poetry and dependencies
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "${HOME}/.local/bin" >> $GITHUB_PATH
poetry install --with docs
- name: Sync gh-pages branch locally
run: |
git fetch origin gh-pages:gh-pages || git checkout --orphan gh-pages
git reset --hard origin/gh-pages || true
- name: Debug current directory and files
run: |
pwd
ls -la
- name: Deploy docs
run: |
poetry run mkdocs gh-deploy --config-file docs/mkdocs.yml --clean --force