Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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@v4

# Installs uv (and manages Python automatically)
- name: Install uv
uses: astral-sh/setup-uv@v5
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
Loading