-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (30 loc) · 865 Bytes
/
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
name: GitHub Pages
on:
push:
branches:
- pages # For testing
- master
jobs:
gh-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Initialize submodules
run:
git submodule update --init --recursive
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -W ignore -m pip install --upgrade pip
python -W ignore -m pip install -r requirements.txt
python -W ignore -m pip install -r docs/requirements-docs.txt
- name: Build Docs
run: sphinx-build docs/source docs/build/html
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/build/html