File tree Expand file tree Collapse file tree 1 file changed +36
-3
lines changed Expand file tree Collapse file tree 1 file changed +36
-3
lines changed Original file line number Diff line number Diff line change 19
19
- " v*.*.*"
20
20
21
21
jobs :
22
- build-pypi-distribs :
23
- name : Build and upload wheels and sdist
22
+ build-pypi-distribs-sdist :
23
+ name : Build and upload sdist
24
+ runs-on : ubuntu-24.04
25
+
26
+ steps :
27
+ - name : Checkout code
28
+ uses : actions/checkout@v4
29
+
30
+ - name : Set up Python
31
+ uses : actions/setup-python@v5
32
+
33
+ - name : Install build, twine, pkginfo, and packaging
34
+ run : python -m pip install --user --upgrade build twine pkginfo packaging
35
+
36
+ - name : Build sdist
37
+ run : python -m build --sdist --outdir dist/
38
+
39
+ - name : Validate sdist for Pypi
40
+ run : python -m twine check dist/*
41
+
42
+ - name : Upload sdist
43
+ uses : actions/upload-artifact@v4
44
+ with :
45
+ name : pypi_archives-sdist
46
+ path : dist/*
47
+
48
+ build-pypi-distribs-wheels :
49
+ name : Build and upload wheels
24
50
runs-on : ubuntu-24.04
25
51
26
52
strategy :
@@ -56,10 +82,17 @@ jobs:
56
82
create-gh-release :
57
83
name : Create GH release
58
84
needs :
59
- - build-pypi-distribs
85
+ - build-pypi-distribs-sdist
86
+ - build-pypi-distribs-wheels
60
87
runs-on : ubuntu-24.04
61
88
62
89
steps :
90
+ - name : Download sdist
91
+ uses : actions/download-artifact@v4
92
+ with :
93
+ name : pypi_archives-sdist
94
+ path : dist
95
+
63
96
- name : Download ubuntu-latest builds
64
97
uses : actions/download-artifact@v4
65
98
with :
You can’t perform that action at this time.
0 commit comments