33 lines
825 B
YAML
33 lines
825 B
YAML
name: Sphinx build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Build HTML
|
|
uses: ammaraskar/sphinx-action@0.4
|
|
with:
|
|
# docs-folder: "docs/"
|
|
# build-command: "sphinx-build -b html docs/source/ docs/build/html"
|
|
pre-build-command: "apt-get update -y && apt-get install -y pandoc"
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: html-docs
|
|
path: docs/build/html/
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
if: github.ref == 'refs/heads/main'
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: docs/build/html |