[agent:surfer] init template AI-ready : WORKFLOW, AGENTS, AI_CONTEXT, Sphinx, scripts
Some checks failed
Build Sphinx docs / build (push) Has been cancelled
Some checks failed
Build Sphinx docs / build (push) Has been cancelled
This commit is contained in:
23
.gitea/workflows/docs.yml
Normal file
23
.gitea/workflows/docs.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
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 }}
|
||||
Reference in New Issue
Block a user