use @misc for @software entries in references.bib #161
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: build_docs | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
# cancel job if a new push to main occurs while running | |
concurrency: | |
group: build_docs | |
cancel-in-progress: true | |
jobs: | |
build_docs: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- name: Checkout git repository | |
uses: actions/checkout@v4 | |
- name: Setup headless display | |
uses: pyvista/setup-headless-display-action@v2 | |
- name: Setup Miniforge | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniforge-version: latest | |
activate-environment: cedalion | |
- name: Get Date | |
id: get-date | |
run: echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT | |
shell: bash | |
- name: Cache Conda env | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.CONDA }}/envs | |
key: | |
conda-${{ runner.os }}--${{ runner.arch }}--${{ | |
steps.get-date.outputs.today }}-${{ | |
hashFiles('environment_dev.yml') }}-${{ env.CACHE_NUMBER }} | |
env: | |
# Increase this value to reset cache if environment_dev.yml has not changed | |
CACHE_NUMBER: 0 | |
id: cache | |
- name: Update environment | |
run: conda env update -n cedalion -f environment_dev.yml | |
if: steps.cache.outputs.cache-hit != 'true' | |
- name: Install cedalion | |
run: python -m pip install -e . --no-deps --force-reinstall | |
- name: Install nirfaster | |
run: bash install_nirfaster.sh CPU | |
shell: bash | |
- name: Building docs | |
run: ./scripts/build_docs.sh docs | |
- name: Save website as an artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: docs-${{ github.ref_name }} | |
path: docs/_build/html | |
retention-days: 2 |