File tree 1 file changed +42
-8
lines changed
1 file changed +42
-8
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,9 @@ permissions:
18
18
contents : write
19
19
20
20
jobs :
21
- deploy :
21
+ build :
22
+ name : Build and upload artifacts
22
23
runs-on : ubuntu-latest
23
- permissions :
24
- # IMPORTANT: this permission is mandatory for trusted publishing
25
- id-token : write
26
- contents : write
27
-
28
24
steps :
29
25
- uses : actions/checkout@v4
30
26
- name : Set up Python
@@ -38,10 +34,48 @@ jobs:
38
34
pip install build
39
35
- name : Build package
40
36
run : python -m build
37
+
38
+ - name : Upload artifact
39
+ uses : actions/upload-artifact@v4
40
+ with :
41
+ name : wheels
42
+ path : dist/
43
+
44
+ publish :
45
+ needs : build
46
+ runs-on : ubuntu-latest
47
+ permissions :
48
+ # IMPORTANT: this permission is mandatory for trusted publishing
49
+ id-token : write
50
+
51
+ steps :
52
+ - name : Download artifact
53
+ uses : actions/download-artifact@v4
54
+ with :
55
+ name : wheels
56
+ path : dist
57
+
41
58
- name : Publish package
42
59
uses : pypa/gh-action-pypi-publish@release/v1
43
-
44
- - name : Upload Release Asset
60
+ with :
61
+ packages-dir : dist/
62
+
63
+ release :
64
+ name : Upload Release Asset
65
+ needs : build
66
+ runs-on : ubuntu-latest
67
+
68
+ permissions :
69
+ contents : write
70
+
71
+ steps :
72
+ - name : Download artifact
73
+ uses : actions/download-artifact@v4
74
+ with :
75
+ name : wheels
76
+ path : dist
77
+
78
+ - name : Upload release assets
45
79
uses : xresloader/upload-to-github-release@v1
46
80
env :
47
81
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments