Merge pull request #33 from linuxrider/fix-temporary-filewatcher-with… #59
This file contains 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: Documentation | |
on: | |
push: { branches: [ "main" ] } | |
pull_request: { branches: [ "main" ] } | |
concurrency: | |
group: doc-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: { submodules: recursive } | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: { miniforge-variant: Mambaforge } | |
- name: install dependencies | |
shell: bash -l {0} | |
run: | | |
mamba env update --quiet -n test -f environment-dev.yml | |
mamba list | |
- name: build documentation | |
shell: bash -l {0} | |
run: | | |
cd doc | |
make html | |
mv generated/html generated/html_ | |
mkdir generated/html | |
mv generated/html_ generated/html/autotag_metadata | |
touch generated/html/autotag_metadata/.nojekyll | |
# - name: check links | |
# shell: bash -l {0} | |
# run: | | |
# # Strangely, the linkchecker modules are installed writable and linkchecker then refuses to load them. | |
# chmod -R a-w `python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"` | |
- uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: doc/generated/html/autotag_metadata | |
target-folder: docs | |
single-commit: true | |
if: ${{ github.event_name == 'push' }} | |