ci: add PyPI publish workflow (OIDC Trusted Publisher on tag push)

This commit is contained in:
Brian Krabach
2026-04-04 14:45:03 -07:00
parent aac5703bc4
commit 1a4fd4cbed
+25
View File
@@ -0,0 +1,25 @@
name: Publish to PyPI
on:
push:
tags:
- "v*"
permissions:
id-token: write # Required for OIDC Trusted Publisher
jobs:
publish:
runs-on: ubuntu-latest
environment: pypi
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Build package
run: uv build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1