Skip to content

tomophantoms_docs

tomophantoms_docs #3

Workflow file for this run

name: tomophantoms_docs
on:
workflow_dispatch:
pull_request:
branches:
- main
push:
branches:
- main
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: Generate yml docs
run: python ./docs/source/yaml_doc_generator.py
- 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 }}