@@ -168,10 +168,6 @@ jobs:
168168 run : |
169169 conda info
170170 conda list
171- - name : Install doxgen on unix systems
172- if : matrix.os != 'windows-latest'
173- run : |
174- conda install doxygen>=1.9.2 graphviz -y
175171 - name : Install compilers using conda on Linux/Mac
176172 if : matrix.os != 'windows-latest' && matrix.with-valgrind != true
177173 run : |
@@ -353,14 +349,6 @@ jobs:
353349 run : |
354350 pytest -sv tests/python
355351
356- # ##################################
357- # Docs tests
358- # ##################################
359- - name : Build docs
360- if : matrix.os != 'windows-latest'
361- run : |
362- python scripts/devtasks.py docs --rebuild
363-
364352 # ##################################
365353 # Coverage
366354 # ##################################
@@ -372,3 +360,44 @@ jobs:
372360 token : ${{ secrets.CODECOV_TOKEN }}
373361 file : coverage/coverage.info
374362 functionalities : gcov
363+
364+ # ######################################
365+ # Build & Publish docs
366+ # ######################################
367+ docs :
368+ name : Build/Publish the Docs
369+ runs-on : ubuntu-latest
370+ steps :
371+ - uses : actions/checkout@v4
372+ with :
373+ submodules : true
374+ - name : Get tags required by setuptools_scm to generate version
375+ run : |
376+ git fetch --prune --unshallow
377+ git fetch --depth=1 origin +refs/tags/*:refs/tags/*
378+ - name : Set up miniconda test environment
379+ if : matrix.with-mpi == false
380+ uses : conda-incubator/setup-miniconda@v3
381+ with :
382+ activate-environment : ephoto
383+ environment-file : environment.yml
384+ auto-update-conda : true
385+ channels : conda-forge
386+ channel-priority : strict
387+ miniforge-variant : Miniforge3
388+ miniforge-version : latest
389+ conda-remove-defaults : true
390+ - name : Install doc dependencies
391+ run : |
392+ conda install -f environment_docs.yml
393+ - name : Build docs
394+ if : matrix.os != 'windows-latest'
395+ run : |
396+ python scripts/devtasks.py docs --rebuild
397+ - name : Publish docs to Github pages
398+ # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
399+ uses : JamesIves/github-pages-deploy-action@3.7.1
400+ with :
401+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
402+ BRANCH : gh-pages
403+ FOLDER : build/doc/html/
0 commit comments