File tree Expand file tree Collapse file tree 1 file changed +9
-16
lines changed Expand file tree Collapse file tree 1 file changed +9
-16
lines changed Original file line number Diff line number Diff line change 4444 - name : Check metadata
4545 run : pipx run twine check dist/*
4646
47- - uses : actions/upload-artifact@v3
47+ - uses : actions/upload-artifact@v4
4848 with :
49+ name : sdist
4950 path : dist/*.tar.gz
5051
5152
@@ -195,22 +196,12 @@ jobs:
195196
196197 CIBW_TEST_SKIP : ${{ matrix.cibw_test_skip }}
197198
198- - uses : actions/upload-artifact@v3
199- id : uploadAttempt1
200- continue-on-error : true
199+ - uses : actions/upload-artifact@v4
201200 with :
201+ name : wheels-${{ matrix.os }}-${{ matrix.cibw_archs }}${{ matrix.arch_note}}
202202 path : wheelhouse/*.whl
203203 if-no-files-found : error
204204
205- # Retry upload if first attempt failed. This happens somewhat randomly and for irregular reasons.
206- # Logic is a duplicate of previous step.
207- - uses : actions/upload-artifact@v3
208- id : uploadAttempt2
209- if : steps.uploadAttempt1.outcome == 'failure'
210- continue-on-error : false
211- with :
212- path : wheelhouse/*.whl
213- if-no-files-found : error
214205
215206 upload_all :
216207 name : Upload to PyPI
@@ -224,10 +215,12 @@ jobs:
224215 with :
225216 python-version : " 3.x"
226217
227- - uses : actions/download-artifact@v3
218+ - uses : actions/download-artifact@v4
228219 with :
229- name : artifact
230- path : dist
220+ path : dist_artifacts
221+
222+ - name : Flatten artifacts to dist/
223+ run : mkdir dist && find dist_artifacts -type f -exec mv {} dist \;
231224
232225 # Upload to PyPI
233226 - uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments