Skip to content

Commit

Permalink
adding actions doc build
Browse files Browse the repository at this point in the history
  • Loading branch information
dkazanc committed Dec 22, 2023
1 parent d3600d9 commit 5bfacf2
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/doc_conda.yml
@@ -0,0 +1,46 @@
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 ./httomo

- 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 }}

0 comments on commit 5bfacf2

Please sign in to comment.