ci: add PyPI publish workflow with trusted publishing

This commit is contained in:
Victor Kuznetsov
2026-04-03 11:58:38 -07:00
parent b505fe3eda
commit d2efc75ec1
+24
View File
@@ -0,0 +1,24 @@
name: Publish to PyPI
on:
release:
types: [published]
permissions:
id-token: write
contents: read
jobs:
publish:
runs-on: ubuntu-latest
environment: pypi
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- name: Build package
run: uv build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1