-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.38 KB
/
docs.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
35
36
37
38
39
40
41
42
43
name: Build docs
on:
push:
branches:
- master
jobs:
sphinx_docs_to_gh-pages:
name: Sphinx docs to gh-pages
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
pip install -e ".[docs]"
- name: Install package
run: |
python -m pip install -vv --no-build-isolation .
- name: Running the Sphinx to gh-pages Action
# uses: uibcdf/[email protected]
# Workaround for bug about improper quoting of GitHub usernames with spaces:
# https://github.com/uibcdf/action-sphinx-docs-to-gh-pages/pull/8
uses: aeisenbarth/action-sphinx-docs-to-gh-pages@patch-1
with:
branch: master
dir_docs: docs
sphinx-apidoc-opts: "--separate -o . ../"
sphinx-apidoc-exclude: ""
sphinx-opts: ""