Files
lab-project-template/.gitea/workflows/docs.yml
2026-04-21 00:15:18 +00:00

24 lines
580 B
YAML

name: Build Sphinx docs
on:
push:
branches: [main, develop]
paths: ['docs/**']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: pip install sphinx sphinx-rtd-theme myst-parser
- run: make -C docs html
- name: Deploy docs
run: |
rsync -avz --delete docs/_build/html/ \
floppyrj45@192.168.0.82:/srv/www/${REPO_NAME}-docs/
env:
REPO_NAME: ${{ github.event.repository.name }}