Skip to content

fix publish workflow #2

fix publish workflow

fix publish workflow #2

Workflow file for this run

name: Release to PyPI
on:
push:
tags:
- "v*"
jobs:
pypi-publish:
name: Upload to PyPI
runs-on: ubuntu-latest
environment:
name: release
permissions:
contents: write
# For PyPI's trusted publishing.
id-token: write
steps:
- uses: actions/checkout@v4
- name: "Install uv"
uses: astral-sh/setup-uv@v5
- name: Build
run: uv build --sdist
- name: Publish to PyPi
run: uv publish --token ${{ secrets.UV_PUBLISH_TOKEN }}