-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (32 loc) · 865 Bytes
/
docs.yaml
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
name: Docs
on:
push:
branches:
- main
jobs:
docs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: pip install -e .
- name: Sphinx clean
run: |
rm -r docs/build/
sphinx-build -M clean docs build
- name: Sphinx build
run: |
sphinx-apidoc -o docs/source/api elicit --separate
sphinx-build docs/source docs/build/html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
force_orphan: true