Fix DAG dependencies of release jobs
What does this MR do?
It replaces needs
with dependencies
so that the release stage doesn't use DAG.
Unfortunately this has the implication that the pipeline takes 45 minutes instead of 33 minutes, because we need to wait for the tests, and then wait for the Windows Docker images to be built.
Why was this MR needed?
So that we never release artifacts unless all previous stages have succeeded.
What's the best way to test this MR?
The latest pipeline demonstrates that the release stage didn't run because of a failure in tests (flaky).
What are the relevant issue numbers?
Closes #26590 (closed)