-
-
Notifications
You must be signed in to change notification settings - Fork 117
34 lines (32 loc) · 723 Bytes
/
release.yml
File metadata and controls
34 lines (32 loc) · 723 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: Release python package
on:
release:
types:
- released
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: release
permissions:
id-token: write
env:
UV_SYSTEM_PYTHON: 1
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
fetch-depth: 0
- id: setup-uv
name: Setup UV
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-suffix: "3.13"
github-token: ${{ github.token }}
python-version: "3.13"
- run: uv build
- name: Release package
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: uv publish