-
Notifications
You must be signed in to change notification settings - Fork 53
43 lines (36 loc) · 1.05 KB
/
doc_conda.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
name: tomophantoms_docs
on:
workflow_dispatch:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build-linux:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- name: Checkout repository code
uses: actions/checkout@v3
- name: Setup Python 3.9
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: tomophantom-docs
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: false
activate-environment: tomophantom-docs
environment-file: ./docs/source/doc-conda-requirements.yml
- name: Build api docs
run: sphinx-apidoc -feT -t=./docs/source/_templates -o ./docs/source/api ./tomophantom
- name: Build html
run: sphinx-build -a -E -b html ./docs/source/ ./docs/build/
- name: Run ghp-import
run: ghp-import -n -p -f ./docs/build
env:
GITHUB_TOKEN: ${{ github.token }}