-
Notifications
You must be signed in to change notification settings - Fork 26
37 lines (35 loc) · 1005 Bytes
/
gh-pages.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
name: Documentation
on:
push:
branches:
- main
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Build documentation
run: |
python -m pip install --upgrade pip
pip install sphinx
pip install furo
pip install sphinx-copybutton
pip install sphinx-inline-tabs
pip install sphinxcontrib-bibtex
pip install .
export SPHINX_APIDOC_OPTIONS=members,show-inheritance
sphinx-apidoc --separate --no-toc -o docs/api morfeus
sphinx-build docs public -b html
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}