-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (38 loc) · 1.12 KB
/
generateDoc.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
# Workflow to install Sphinx ( https://www.sphinx-doc.org/ - Python documentation generator),
# generate HTML
# and deploy it on a branch linked to Github Pages
name: "CI/CD Doc-string"
on:
push:
branches:
- main
paths:
- 'comokit4py/**'
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
with:
persist-credentials: false
- name: "Set up Python"
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: "Install Python Sphinx && dependencies"
run: |
pip3 install setuptools
pip3 install -r base/pre-processing/requirements.txt
pip3 install -r base/post-processing/requirements.txt
pip3 install sphinx sphinx-rtd-theme
- name: "Build Sphinx Doc"
run: |
make html
- name: "Deploy Github Pages"
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: doc/_build/html/