File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -112,9 +112,25 @@ jobs:
112112 path : dist/
113113 if-no-files-found : error
114114
115+ build-sdist :
116+ name : Build source distribution packages
117+ runs-on : ubuntu-24.04
118+ steps :
119+ - uses : actions/checkout@v5
120+ - name : Build sdist
121+ uses : PyO3/maturin-action@v1
122+ with :
123+ command : sdist
124+ args : --out dist
125+ - name : Upload sdist
126+ uses : actions/upload-artifact@v4
127+ with :
128+ name : dist-packages-sdist
129+ path : dist
130+
115131 test-installation :
116132 name : Test package installation
117- needs : ["build"]
133+ needs : ["build", "build-sdist" ]
118134 strategy :
119135 fail-fast : false
120136 matrix :
@@ -325,7 +341,7 @@ jobs:
325341 --generate-notes \
326342 $extra_opts \
327343 $REF_NAME \
328- dist/dist-packages-*/*.whl
344+ dist/dist-packages-*/*.whl dist/dist-packages-sdist/*.tar.gz
329345 env :
330346 REF_NAME : ${{ github.ref_name }}
331347 REPOSITORY : ${{ github.repository }}
You can’t perform that action at this time.
0 commit comments