File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,13 @@ jobs:
38
38
path : wheelhouse/*.whl
39
39
40
40
publish :
41
- # Wait for all platforms to build, then publish wheels.
41
+ # Wait for all platforms to build, then publish wheels and a source distribution .
42
42
needs : build_wheels
43
43
runs-on : ubuntu-latest
44
44
45
45
steps :
46
+ - uses : actions/checkout@v4
47
+
46
48
- name : Download wheels (Ubuntu)
47
49
uses : actions/download-artifact@v4
48
50
with :
@@ -61,10 +63,15 @@ jobs:
61
63
name : wheels-windows-latest
62
64
path : wheels
63
65
64
- - name : Publish wheels to PyPI
66
+ - name : Build source distribution
67
+ run : |
68
+ python -m pip install --upgrade pip setuptools wheel build
69
+ python -m build --sdist --outdir sdist
70
+
71
+ - name : Publish wheels and source distribution to PyPI
65
72
run : |
66
73
python -m pip install --upgrade pip setuptools wheel twine
67
- twine upload wheels/*.whl
74
+ twine upload wheels/*.whl sdist/*.tar.gz
68
75
env :
69
76
TWINE_USERNAME : __token__
70
77
TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments