Skip to content

Commit 44059cd

Browse files
committed
Build: Release after upload to make sure wheels become available even if the release step fails.
1 parent d3bdb30 commit 44059cd

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/wheels.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,18 @@ jobs:
6262
- name: Build sdist
6363
run: make sdist
6464

65-
- name: Release
66-
uses: softprops/action-gh-release@v1
67-
if: startsWith(github.ref, 'refs/tags/')
68-
with:
69-
files: dist/*.tar.gz
70-
7165
- name: Upload sdist
7266
uses: actions/upload-artifact@694cdabd8bdb0f10b2cea11669e1bf5453eed0a6 # v4.2.0
7367
with:
7468
name: sdist
7569
path: dist/*.tar.gz
7670

71+
- name: Release
72+
uses: softprops/action-gh-release@v1
73+
if: startsWith(github.ref, 'refs/tags/')
74+
with:
75+
files: dist/*.tar.gz
76+
7777
generate-wheels-matrix:
7878
# Create a matrix of all architectures & versions to build.
7979
# This enables the next step to run cibuildwheel in parallel.
@@ -201,19 +201,19 @@ jobs:
201201
run: make USE_BUNDLE=true sdist wheel_${{ matrix.image }}
202202
env: { PYTHON_BUILD_VERSION: "${{ matrix.pyversion }}" }
203203

204-
- name: Release
205-
uses: softprops/action-gh-release@v1
206-
if: startsWith(github.ref, 'refs/tags/')
207-
with:
208-
files: wheelhouse_*/*-m*linux*.whl # manylinux / musllinux
209-
210204
- name: Upload wheels
211205
uses: actions/upload-artifact@694cdabd8bdb0f10b2cea11669e1bf5453eed0a6 # v4.2.0
212206
with:
213207
name: wheels-${{ matrix.image }}
214208
path: wheelhouse_*/*-m*linux*.whl # manylinux / musllinux
215209
if-no-files-found: ignore
216210

211+
- name: Release
212+
uses: softprops/action-gh-release@v1
213+
if: startsWith(github.ref, 'refs/tags/')
214+
with:
215+
files: wheelhouse_*/*-m*linux*.whl # manylinux / musllinux
216+
217217
non-Linux:
218218
strategy:
219219
# Allows for matrix sub-jobs to fail without canceling the rest
@@ -272,15 +272,15 @@ jobs:
272272
export PATH=$PYTHON_BIN_DIR:$PATH
273273
python setup.py --with-cython sdist ${{ contains(matrix.pyversion, '3.') && 'build_ext -j6' || '' }} bdist_wheel
274274
275-
- name: Release
276-
uses: softprops/action-gh-release@v1
277-
if: startsWith(github.ref, 'refs/tags/')
278-
with:
279-
files: dist/*.whl
280-
281275
- name: Upload wheels
282276
uses: actions/upload-artifact@694cdabd8bdb0f10b2cea11669e1bf5453eed0a6 # v4.2.0
283277
with:
284278
name: wheels-${{ matrix.pyversion }}-${{ matrix.os }}
285279
path: dist/*.whl
286280
if-no-files-found: ignore
281+
282+
- name: Release
283+
uses: softprops/action-gh-release@v1
284+
if: startsWith(github.ref, 'refs/tags/')
285+
with:
286+
files: dist/*.whl

0 commit comments

Comments
 (0)