Skip to content
This repository was archived by the owner on Sep 26, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Publish to PyPI

on:
push:
tags:
- 'v*.*.*'
release:
types: [published]
workflow_dispatch:
Expand All @@ -23,6 +26,16 @@ jobs:
steps:
- uses: actions/checkout@v7

- name: Verify tag matches pyproject.toml version
if: github.event_name == 'push'
run: |
TAG=${GITHUB_REF#refs/tags/v}
PYPROJECT_VERSION=$(grep '^version = ' pyproject.toml | cut -d'"' -f2)
if [ "${TAG}" != "${PYPROJECT_VERSION}" ]; then
echo "Error: Tag version (${TAG}) does not match pyproject.toml version (${PYPROJECT_VERSION})"
exit 1
fi

- name: Install uv
uses: astral-sh/setup-uv@v8.3.2
with:
Expand Down
Loading