File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,7 +155,11 @@ jobs:
155155 name : Publish fvtk-sdk to PyPI (trusted publishing)
156156 # Release-only. Requires a PyPI trusted publisher on project `fvtk-sdk`
157157 # bound to repo pyvista/fvtk, workflow sdk.yml, environment pypi-sdk.
158- if : github.event_name == 'release'
158+ # always() is REQUIRED: the PR-only `changes` job is skipped on release, and
159+ # without a status function that skip propagates down the needs chain and
160+ # silently skips this publish (it did, on 9.6.2.0rc2). Gate explicitly on the
161+ # release event AND build-sdk success instead.
162+ if : ${{ always() && github.event_name == 'release' && needs.build-sdk.result == 'success' }}
159163 needs : [build-sdk]
160164 runs-on : ${{ vars.FVTK_RUNNER_LINUX_SMALL || 'ubuntu-latest' }}
161165 environment :
You can’t perform that action at this time.
0 commit comments