Skip to content

Publish to PyPI

Publish to PyPI #16

Workflow file for this run

name: Publish to PyPI
on:
release:
types: [published]
permissions:
contents: read
# TDDO: migrate to uv for building
jobs:
release-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.5.x"
enable-cache: true
- run: uv build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}