-
Notifications
You must be signed in to change notification settings - Fork 132
46 lines (37 loc) · 1.02 KB
/
build_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
name: build_docs
on:
push:
branches: [master]
pull_request:
branches: ['*']
jobs:
build-docs:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: actions/[email protected]
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install --upgrade pip setuptools wheel
pip install -r requirements.in
pip install -r requirements-dev.txt
pip install .[all]
- name: Build the book
run: jupyter-book build docs/ --warningiserror --keep-going --all
- name: Upload artifacts to GitHub
uses: actions/[email protected]
with:
path: docs/_build/html
deploy-docs:
needs: [build-docs]
runs-on: ubuntu-22.04
if: github.event.pull_request.merged
steps:
- uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html