Skip to content

Publish to PyPI

Publish to PyPI #2

Workflow file for this run

name: Publish to PyPI
on: workflow_dispatch
jobs:
publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest
if: github.ref_name == 'main'
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up uv and Python
uses: astral-sh/setup-uv@v6
with:
python-version: "3.13"
- name: Build with uv
run: uv build --no-sources
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1