-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (33 loc) · 810 Bytes
/
release.yml
File metadata and controls
40 lines (33 loc) · 810 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
35
36
37
38
39
40
name: Release python package
on:
push:
tags:
- "v*"
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "latest"
enable-cache: true
cache-suffix: release-py3.14
python-version: 3.14
- name: Set version from tag
shell: bash
run: |
VERSION="${GITHUB_REF_NAME#v}"
uv version "$VERSION" --frozen
- name: Build package
run: uv build --no-sources
- name: Publish package
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: uv publish