Skip to content

Workflow file for this run

name: Publish Python package
on:
push:
branches: [master]
release:
types: [created]
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install uv
run: pip install uv
- name: Build and publish to PyPI
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
uv build --no-sources
uv publish --token $PYPI_API_TOKEN