-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (35 loc) · 1.14 KB
/
make_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
name: Sphinx docs to gh-pages
on:
push:
branches:
- 1.0
# workflow_dispatch: # Un comment line if you also want to trigger action manually
jobs:
sphinx_docs_to_gh-pages:
runs-on: ubuntu-latest
name: Sphinx docs to gh-pages
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Make conda environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.7 # Python version to build the html sphinx documentation
environment-file: environment.yml # Path to the documentation conda environment
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- name: Installing the library
shell: bash -l {0}
run: |
ls
pwd
- name: Running the Sphinx to gh-pages Action
uses: uibcdf/[email protected]
with:
branch: '1.0'
dir_docs: docs/source
sphinxapiopts: '--separate -f -E --implicit-namespaces -l -o . ../'
sphinxapiexclude: '../*setup* ../*.ipynb'
sphinxopts: ''