File tree 1 file changed +9
-16
lines changed
1 file changed +9
-16
lines changed Original file line number Diff line number Diff line change 44
44
- name : Check metadata
45
45
run : pipx run twine check dist/*
46
46
47
- - uses : actions/upload-artifact@v3
47
+ - uses : actions/upload-artifact@v4
48
48
with :
49
+ name : sdist
49
50
path : dist/*.tar.gz
50
51
51
52
@@ -195,22 +196,12 @@ jobs:
195
196
196
197
CIBW_TEST_SKIP : ${{ matrix.cibw_test_skip }}
197
198
198
- - uses : actions/upload-artifact@v3
199
- id : uploadAttempt1
200
- continue-on-error : true
199
+ - uses : actions/upload-artifact@v4
201
200
with :
201
+ name : wheels-${{ matrix.os }}-${{ matrix.cibw_archs }}${{ matrix.arch_note}}
202
202
path : wheelhouse/*.whl
203
203
if-no-files-found : error
204
204
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
214
205
215
206
upload_all :
216
207
name : Upload to PyPI
@@ -224,10 +215,12 @@ jobs:
224
215
with :
225
216
python-version : " 3.x"
226
217
227
- - uses : actions/download-artifact@v3
218
+ - uses : actions/download-artifact@v4
228
219
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 \;
231
224
232
225
# Upload to PyPI
233
226
- uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments