Skip to content

v0.5.4

v0.5.4 #19

Workflow file for this run

name: Release
on:
release:
types: [published]
permissions:
contents: read
id-token: write # Required for OIDC Trusted Publishing
attestations: write # Required for SLSA provenance attestations
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
python-version: "3.11"
- name: Verify version matches tag
run: |
TAG=${GITHUB_REF#refs/tags/v}
PKG=$(grep '^version' pyproject.toml | cut -d'"' -f2)
if [ "$TAG" != "$PKG" ]; then
echo "::error::Tag v$TAG does not match pyproject.toml version $PKG"
exit 1
fi
- name: Build package
run: uv build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
attestations: true