feat: publish to pypi

This commit is contained in:
Daniel Bauer
2025-07-04 13:11:17 +02:00
parent 99a1397164
commit 2ca87fb87f

View File

@@ -75,3 +75,30 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
pypi:
runs-on: ubuntu-latest
needs: test
permissions:
id-token: write
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Set up Python
run: uv python install 3.13
- name: Install dependencies
run: uv sync
- name: Build package
run: uv build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1