Skip to content

add GDAL_CONFIG to see if we can mock it #4

add GDAL_CONFIG to see if we can mock it

add GDAL_CONFIG to see if we can mock it #4

Workflow file for this run

name: Deploy Documentation
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install System Dependencies (GDAL)
# Fiona needs gdal-config to determine versions and paths
run: |
sudo apt-get update
sudo apt-get install -y libgdal-dev g++
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Set up Python
run: uv python install
- name: Install dependencies
# We set GDAL_CONFIG so Fiona's build backend finds the system GDAL
run: |
export GDAL_CONFIG=/usr/bin/gdal-config
uv sync --all-extras
env:
GDAL_CONFIG: /usr/bin/gdal-config
- name: Build documentation
run: |
# Re-export or use uv run --env to ensure Sphinx can see Fiona
uv run sphinx-build -b html docs/source docs/build/html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html