Skip to content

v2026-04-08 (rev. 2) #7

v2026-04-08 (rev. 2)

v2026-04-08 (rev. 2) #7

Workflow file for this run

name: Publish to PyPI
on:
release:
types: [published]
permissions:
contents: read
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/ucp-sdk
permissions:
id-token: write
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v5
# Installs uv (and manages Python automatically)
- name: Install uv
uses: astral-sh/setup-uv@v8.2.0
with:
enable-cache: true
# 'uv build' automatically creates the sdist and wheel inz 'dist/'
- name: Build package
run: uv build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1