Merge pull request #248 from DiamondLightSource/radway_69_iterative_l… #387
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: HTTomolibgpu 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.10 | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: "3.10" | |
| - name: httomolibgpu-docs | |
| uses: mamba-org/setup-micromamba@v2 | |
| with: | |
| environment-name: httomolibgpu-docs | |
| environment-file: ./docs/source/doc-conda-requirements.yml | |
| post-cleanup: 'all' | |
| init-shell: bash | |
| - name: Build api docs | |
| run: sphinx-apidoc -feT -t=./docs/source/_templates -o ./docs/source/api ./httomolibgpu | |
| - name: Build html | |
| run: sphinx-build -a -E -b html ./docs/source/ ./docs/build/ | |
| - name: Publish docs | |
| if: github.ref_type == 'tag' || github.ref_name == 'main' | |
| run: ghp-import -n -p -f ./docs/build | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |