-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 986 Bytes
/
sphinx.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: "Sphinx: Render docs"
run-name: ${{ github.actor }} has launched CI process on ${{ github.ref_name }}
on:
push:
branches:
- "feature/retrieve_doc" # TODO Should build from main branch
pull_request:
branches:
- "develop"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for versioning to work
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build Sphinx documentation with multiversion
run: "sphinx-multiversion docs/source build/html -D 'exhale_args.containmentFolder=${sourcedir}/java_api'"
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html