-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 993 Bytes
/
Copy pathrelease.yml
File metadata and controls
39 lines (36 loc) · 993 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
name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write # required by softprops/action-gh-release to create releases
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Set up uv
uses: astral-sh/setup-uv@v8.2.0
with:
enable-cache: true
python-version: "3.12" # project requires >=3.12; pin to ensure a compatible interpreter
- name: Build sdist and wheel
run: uv build
- name: Upload artifacts
uses: actions/upload-artifact@v7
with:
name: dist
path: |
dist/*.whl
dist/*.tar.gz
# retained for debugging; the GitHub Release is the primary delivery
- name: Create GitHub Release
uses: softprops/action-gh-release@v3
with:
files: |
dist/*.whl
dist/*.tar.gz
generate_release_notes: true