Skip to content

Commit a81e30e

Browse files
committed
upload artifacts for [Release] PRs
1 parent 271f965 commit a81e30e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/dist.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
9090
- name: Upload SDist
9191
# Not PR to save artifact storage, as SDist is only needed for releases.
92-
if: github.event_name != 'pull_request'
92+
if: github.event_name != 'pull_request' || contains(github.event.pull_request.title, '[Release]')
9393
uses: actions/upload-artifact@v4
9494
with:
9595
name: sdist
@@ -157,7 +157,7 @@ jobs:
157157

158158
- name: Upload wheels
159159
# Not PR to save artifact storage, as wheels are only needed for releases.
160-
if: github.event_name != 'pull_request'
160+
if: github.event_name != 'pull_request' || contains(github.event.pull_request.title, '[Release]')
161161
uses: actions/upload-artifact@v5
162162
with:
163163
name: wheels-${{ matrix.python-version }}-${{ runner.os }}-${{ runner.arch }}-${{ matrix.target.toolkit }}
@@ -167,7 +167,7 @@ jobs:
167167
list-artifacts:
168168
name: List artifacts
169169
# Not PR to save artifact storage, as artifacts are only needed for releases.
170-
if: github.event_name != 'pull_request'
170+
if: github.event_name != 'pull_request' || contains(github.event.pull_request.title, '[Release]')
171171
runs-on: ubuntu-latest
172172
needs: [build-sdist, build-wheels]
173173
timeout-minutes: 15

0 commit comments

Comments
 (0)