-
Notifications
You must be signed in to change notification settings - Fork 13
48 lines (37 loc) · 1.16 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
44
45
46
47
48
name: sphinx
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Check-out repository
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Check-out repository
uses: actions/checkout@v3
- name: Install system build deps
run: sudo apt-get update -y && sudo apt-get install -y --no-install-recommends build-essential gcc libsndfile1
- name: Update pip
run: python -m pip install --upgrade pip
- name: Install Python deps
run: pip install -r requirements.txt
- name: Install editable
run: pip install -e .
- name: Install docs deps
run: pip install -r docs/requirements.txt
- name: Sphix Build
run: sphinx-build -b html docs/source docs/_build
- name: Deploy
if: success()
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build