Skip to content

Publish release to PyPI #2

Publish release to PyPI

Publish release to PyPI #2

Workflow file for this run

name: Publish release to PyPI
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
build-and-publish:
name: Build and Publish to PyPI
runs-on: ubuntu-latest
environment: pypi
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install uv
run: pip install uv
- name: Build wheel and source distribution
run: uv build
- name: Publish to PyPI
run: uv publish