Skip to content

Bump the dev-deps group across 1 directory with 2 updates #138

Bump the dev-deps group across 1 directory with 2 updates

Bump the dev-deps group across 1 directory with 2 updates #138

Workflow file for this run

name: Documentation
on:
push:
permissions:
contents: write
jobs:
test-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Install documentation dependencies
run: pip install -r docs/docs_requirements.txt
- name: Build documentation
run: mkdocs build --strict
- name: Verify build output
run: |
if [ ! -f site/index.html ]; then
echo "Error: site/index.html not found"
exit 1
fi
echo "Documentation built successfully"
ls -lh site/
deploy:
runs-on: ubuntu-latest
needs: test-docs
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Install documentation dependencies
run: pip install -r docs/docs_requirements.txt
- name: Build documentation
run: mkdocs build --strict
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site