forked from Universal-Commerce-Protocol/python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 751 Bytes
/
release.yml
File metadata and controls
34 lines (29 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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