@@ -338,19 +338,29 @@ jobs:
338
338
cd ..
339
339
340
340
341
- build_sdist :
341
+ build-python-sdist :
342
342
name : Build source distribution
343
343
runs-on : ubuntu-latest
344
+ # needs: [ rust-clippy, rust-doc, rust-tests, rustfst-python-bench, rustfst-python, python-doc ]
345
+ # if: startsWith(github.ref, 'refs/tags/rustfst-v')
344
346
steps :
345
- - uses : actions/checkout@v4
346
- - uses : actions/upload-artifact@v4
347
+ - name : Checkout
348
+ uses : actions/checkout@v4
349
+
350
+ - name : Build source distribution
351
+ run : pipx run build --sdist
352
+
353
+ - name : Upload source distribution as artifact
354
+ uses : actions/upload-artifact@v4
347
355
with :
348
356
name : cibw-sdist
349
357
path : dist/*.tar.gz
350
358
359
+
351
360
publish-python-wheels :
352
361
name : Publish Python Wheels to PyPI
353
- # needs: [ rust-clippy, rust-doc, rust-tests, rustfst-python-bench, rustfst-python, python-doc ]
362
+ needs : [ build-python-sdist ]
363
+ # needs: [ rust-clippy, rust-doc, rust-tests, rustfst-python-bench, rustfst-python, python-doc, build-python-sdist ]
354
364
# if: startsWith(github.ref, 'refs/tags/rustfst-v')
355
365
356
366
strategy :
@@ -368,6 +378,7 @@ jobs:
368
378
369
379
- name : Build wheels
370
380
381
+ if : false
371
382
env :
372
383
CIBW_SKIP : cp*-musllinux_i686
373
384
CIBW_ENVIRONMENT : PATH="$HOME/.cargo/bin:$PATH"
@@ -385,6 +396,7 @@ jobs:
385
396
386
397
- name : Upload wheels as artifacts
387
398
uses : actions/upload-artifact@v4
399
+ if : false
388
400
with :
389
401
name : cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
390
402
path : ./wheelhouse/*.whl
@@ -394,7 +406,7 @@ jobs:
394
406
with :
395
407
python-version : ${{ env.PYTHON_VERSION }}
396
408
397
- - name : Upload wheels to PyPI
409
+ - name : Upload sdist and wheels to PyPI
398
410
run : |
399
411
python -m pip install twine
400
- python -m twine upload -u "__token__" -p ${{ secrets.PYPI_PASSWORD }} -r pypi --verbose wheelhouse/*
412
+ # python -m twine upload -u "__token__" -p ${{ secrets.PYPI_PASSWORD }} -r pypi --verbose wheelhouse/* dist/*.tar.gz
0 commit comments