Skip to content

Commit 72c0b7b

Browse files
authored
Update python-publish.yml
1 parent a002371 commit 72c0b7b

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/python-publish.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Upload Python Package
1+
name: Publish Python Package
22

33
on:
44
release:
@@ -24,3 +24,32 @@ jobs:
2424

2525
- name: Build
2626
run: uv build
27+
28+
- name: Upload distributions
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: release-dists
32+
path: dist/
33+
34+
pypi-publish:
35+
runs-on: ubuntu-latest
36+
needs:
37+
- release-build
38+
permissions:
39+
id-token: write
40+
41+
steps:
42+
- name: Retrieve release distributions
43+
uses: actions/download-artifact@v4
44+
with:
45+
name: release-dists
46+
path: dist/
47+
48+
- name: Install uv
49+
uses: astral-sh/setup-uv@v5
50+
51+
- name: Publish release distributions to PyPI
52+
run: uv publish
53+
54+
55+

0 commit comments

Comments
 (0)