File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ tags :
7
+ - v*
8
+
9
+ jobs :
10
+ build_wheels :
11
+ name : Build
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v5
15
+ - name : Install the latest version of uv
16
+ uses : astral-sh/setup-uv@v6
17
+ with :
18
+ version : " latest"
19
+ - name : Build
20
+ run : uv build
21
+ - uses : actions/upload-artifact@v4
22
+ with :
23
+ path : ./dist/*
24
+
25
+ upload_pypi :
26
+ name : Upload to PyPI
27
+ needs : [build_wheels]
28
+ runs-on : ubuntu-latest
29
+ environment : pypi
30
+ permissions :
31
+ id-token : write
32
+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
33
+ steps :
34
+ - uses : actions/download-artifact@v4
35
+ with :
36
+ name : artifact
37
+ path : dist
38
+
39
+ - uses : pypa/gh-action-pypi-publish@release/v1
40
+ with :
41
+ skip-existing : true
You can’t perform that action at this time.
0 commit comments