Skip to content

ci: add step to check wheel contents before uploading artifacts #139

ci: add step to check wheel contents before uploading artifacts

ci: add step to check wheel contents before uploading artifacts #139

Workflow file for this run

name: Deploy MkDocs to GitHub Pages
on:
push:
branches: [main]
tags: [v*]
pull_request:
branches: [main]
permissions:
contents: write
pages: write
id-token: write
jobs:
build-docs:
runs-on: ubuntu-latest
env:
UV_FROZEN: 1
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@v6
- name: Deploy to GitHub Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: uv run --group docs --no-editable -C=setup-args="-Dmatch_swig=false" mkdocs gh-deploy --strict --force
- name: Test docs
if: github.event_name == 'pull_request'
run: uv run --group docs --no-editable -C=setup-args="-Dmatch_swig=false" mkdocs build --strict
- uses: actions/upload-artifact@v4
with:
name: docs
path: site