Skip to content

Commit 3086272

Browse files
committed
test separate artifacts for every step
1 parent f1a658e commit 3086272

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

.github/workflows/cibuildwheel.yml

+17-16
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
- name: Build wheels for CPython
2727
uses: pypa/[email protected]
2828

29+
- uses: actions/upload-artifact@v4
30+
with:
31+
name: wheels-${{ matrix.os }}
32+
path: ./wheelhouse/*.whl
33+
2934
build_sdist:
3035
name: Build source distribution
3136
runs-on: ubuntu-latest
@@ -42,31 +47,27 @@ jobs:
4247
pip install build
4348
python -m build -s .
4449
45-
upload_artifacts:
46-
needs: [build_wheels, build_sdist]
47-
name: Upload build artifacts
48-
runs-on: ubuntu-latest
49-
steps:
5050
- uses: actions/upload-artifact@v4
5151
with:
52-
name: wheels_and_tarball
53-
path: |
54-
./dist/*.tar.gz
55-
./wheelhouse/*.whl
52+
name: sdist
53+
path: ./dist/*.tar.gz
5654

5755
upload_pypi:
58-
needs: upload_artifacts
56+
needs: [build_wheels, build_sdist]
5957
runs-on: ubuntu-latest
6058
# to publish when a GitHub Release is created:
61-
if: github.event_name == 'release' && github.event.action == 'released'
59+
# if: github.event_name == 'release' && github.event.action == 'released'
6260
steps:
6361
- uses: actions/download-artifact@v4
6462
with:
65-
name: wheels_and_tarball
6663
path: dist
64+
merge-multiple: true
6765

68-
- uses: pypa/gh-action-pypi-publish@release/v1
69-
with:
70-
user: __token__
71-
password: ${{ secrets.PYPI_TOKEN }}
66+
- name: Display structure of downloaded files
67+
run: ls -lR dist
68+
69+
# - uses: pypa/gh-action-pypi-publish@release/v1
70+
# with:
71+
# user: __token__
72+
# password: ${{ secrets.PYPI_TOKEN }}
7273
# repository_url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)