Skip to content

Apply CRS metadata

Apply CRS metadata #66

Workflow file for this run

name: Sphinx Documentation
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
env:
LD_LIBRARY_PATH: /usr/local/lib
C_INCLUDE_PATH: /usr/local/include
CPLUS_INCLUDE_PATH: /usr/local/include
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Create working directories
run: |
mkdir -p libs-hdf5 libs-netcdf
- name: Cache HDF5
id: cache-hdf5
uses: actions/cache@v2
with:
path: libs-hdf5
key: ${{ runner.os }}-hdf5-v3
- name: Build HDF5
if: steps.cache-hdf5.outputs.cache-hit != 'true'
run: |
wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.12/hdf5-1.12.0/src/hdf5-1.12.0.tar.gz
tar -xf hdf5-1.12.0.tar.gz
cd hdf5-1.12.0 && ./configure --prefix=/usr/local && make
working-directory: libs-hdf5
- name: Install HDF5
run: |
cd hdf5-1.12.0 && sudo make install
working-directory: libs-hdf5
- name: Cache NetCDF
id: cache-netcdf
uses: actions/cache@v2
with:
path: libs-netcdf
key: ${{ runner.os }}-netcdf-v2
- name: Build NetCDF
if: steps.cache-netcdf.outputs.cache-hit != 'true'
run: |
wget https://github.com/Unidata/netcdf-c/archive/refs/tags/v4.7.4.tar.gz -O netcdf-c-4.7.4.tar.gz
tar -xf netcdf-c-4.7.4.tar.gz
cd netcdf-c-4.7.4 && ./configure --prefix=/usr/local --disable-dap && make
working-directory: libs-netcdf
- name: Install NetCDF
run: |
cd netcdf-c-4.7.4 && sudo make install
working-directory: libs-netcdf
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry env use system
poetry install -E netcdf
poetry run pip install sphinx
poetry run pip install sphinx-material
- name: Build documentation
run: |
cd docs && poetry run make html
- name: Deploy documentation
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html