Skip to content

ci: build and deploy docs #1

ci: build and deploy docs

ci: build and deploy docs #1

name: "Build Sphinx Documentation"
on:
push:
branches:
- ci/setup
# - master
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
pip install myst-parser
pip install .
pip install sphinx-rtd-theme sphinx-autodoc-typehints sphinx-click sphinx-automodapi texext
- name: "Parse into HTML"
run: |
sphinx-build -M html docs/source/ docs/build/
sphinx-apidoc -o docs/source/api src/modalities
pages:
runs-on: ubuntu-20.04
steps:
- name : "Deploy Github Pages"
- id: deployment
uses: sphinx-notes/pages@v3
with:
publish: false
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ steps.deployment.outputs.artifact }}