mirror of
https://github.com/ArcaneChat/core.git
synced 2026-07-03 14:05:33 +02:00
30f8522626
To preview the docs, run: ``` scripts/build-python-docs.sh firefox dist/html/index.html ``` I have removed the Makefile because modern Sphinx Makefile is just a wrapper for `sphinx-build -M`: https://github.com/sphinx-doc/sphinx/blob/35965903177c6ed9a6afb62ccd33243a746a3fc0/sphinx/templates/quickstart/Makefile.new_t and sphinx-quickstart even has an option `--no-makefile`. `make.bat` makes even less sense. In `scripts/build-python-docs.sh` I use `sphinx-build` directly without `make` wrapper.
26 lines
624 B
YAML
26 lines
624 B
YAML
name: Build & Deploy Documentation on py.delta.chat
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0 # Fetch history to calculate VCS version number.
|
|
- name: Build Python documentation
|
|
run: scripts/build-python-docs.sh
|
|
- name: Upload to py.delta.chat
|
|
uses: up9cloud/action-rsync@v1.3
|
|
env:
|
|
USER: delta
|
|
KEY: ${{ secrets.CODESPEAK_KEY }}
|
|
HOST: "lists.codespeak.net"
|
|
SOURCE: "dist/html/"
|
|
TARGET: "/home/delta/build/master"
|