Skip to content

Commit e5011da

Browse files
committed
.github/workflows/dist.yml: Upload wheels also when some archs fail to build
1 parent 60fd1ae commit e5011da

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/dist.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,29 @@ jobs:
338338
name: ${{ matrix.os }}-${{ matrix.arch }}-wheels
339339
path: ./wheelhouse/*.whl
340340

341+
- uses: actions/upload-artifact@v4
342+
if: always()
343+
with:
344+
name: unpacked-${{ matrix.os }}
345+
path: ./unpacked
346+
347+
- uses: actions/upload-artifact@v4
348+
if: always()
349+
with:
350+
name: sage-local-${{ matrix.os }}
351+
path: ./sage-local
352+
353+
- uses: actions/upload-artifact@v4
354+
if: always()
355+
with:
356+
name: logs-${{ matrix.os }}
357+
path: ./logs
358+
341359
pypi-publish:
342360
# https://github.com/pypa/gh-action-pypi-publish
343361
name: Upload to PyPI
344362
needs: [build_wheels, build_wheels_windows]
345-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
363+
if: (success() || failure()) && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
346364
runs-on: ubuntu-latest
347365
env:
348366
CAN_DEPLOY: ${{ secrets.SAGEMATH_PYPI_API_TOKEN != '' }}

0 commit comments

Comments
 (0)