Skip to content

Merge pull request #49 from echemdb/gh-miniforge #96

Merge pull request #49 from echemdb/gh-miniforge

Merge pull request #49 from echemdb/gh-miniforge #96

Workflow file for this run

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
- name: install dependencies
shell: bash -l {0}
run: |
conda env update --quiet -n test -f environment-dev.yml
conda 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' }}