@@ -76,21 +76,23 @@ jobs:
7676 CIBW_BUILD : cp${{ matrix.python }}-${{ matrix.platform_id }}
7777 CIBW_TEST_COMMAND : python -m unittest discover {project}/tests
7878
79- - uses : actions/upload-artifact@v3
79+ - uses : actions/upload-artifact@v4
8080 with :
81+ name : cibw-wheels-${{ matrix.os }}-${{ matrix.python }}-${{ strategy.job-index }}
8182 path : ./wheelhouse/*.whl
8283
8384 build_sdist :
8485 name : Build source distribution
85- runs-on : ubuntu-20.04
86+ runs-on : ubuntu-latest
8687 steps :
8788 - uses : actions/checkout@v3
8889
8990 - name : Build sdist
9091 run : pipx run build --sdist
9192
92- - uses : actions/upload-artifact@v3
93+ - uses : actions/upload-artifact@v4
9394 with :
95+ name : cibw-sdist
9496 path : dist/*.tar.gz
9597
9698 upload_pypi :
@@ -101,17 +103,16 @@ jobs:
101103 # alternatively, to publish when a GitHub Release is created, use the following rule:
102104 if : github.event_name == 'release' && github.event.action == 'published'
103105 steps :
104- - uses : actions/download-artifact@v3
106+ - uses : actions/download-artifact@v4
105107 with :
106- # unpacks default artifact into dist/
107- # if `name: artifact` is omitted, the action will create extra parent dir
108- name : artifact
108+ pattern : cibw-*
109109 path : dist
110+ merge-multiple : true
110111
111112 - uses : pypa/gh-action-pypi-publish@v1.5.0
112113 with :
113114 user : __token__
114115 password : ${{ secrets.pypi_password }}
115116 # password: ${{ secrets.test_pypi_password }}
116117 # To test
117- # repository_url: https://test.pypi.org/legacy/
118+ # repository_url: https://test.pypi.org/legacy/
0 commit comments