build: Switch to uv build backend

This commit is contained in:
Chris Coutinho
2025-10-20 19:59:41 +02:00
parent aa0b6dc5dd
commit 989b6de3c0
2 changed files with 64 additions and 4 deletions
+30
View File
@@ -0,0 +1,30 @@
name: Release
on:
push:
tags:
# Publish on any tag starting with a `v`, e.g., v1.2.3
- v*
jobs:
pypi:
name: Publish to PyPI
runs-on: ubuntu-latest
# Environment and permissions trusted publishing.
environment:
# Create this environment in the GitHub repository under Settings -> Environments
name: pypi
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install Python 3.11
run: uv python install 3.11
- name: Build
run: uv build
- name: Publish
run: uv publish