Skip to content

Publish to PyPI

Publish to PyPI #25

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- "v*"
permissions:
contents: read
id-token: write
jobs:
build-and-publish:
name: Build and publish Python distribution to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Build package
run: uv build
- name: Publish to PyPI
run: uv publish