From 6439b929b335f005e071273ebbc783df884339c1 Mon Sep 17 00:00:00 2001 From: zyy17 Date: Thu, 19 Oct 2023 21:05:44 +0800 Subject: [PATCH] ci: the 'publish-github-release' and 'release-cn-artifacts' have to wait for all the artifacts are built (#2622) --- .github/workflows/release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7a4a4bb965..9c3f1be562 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -302,8 +302,12 @@ jobs: release-cn-artifacts: name: Release artifacts to CN region if: ${{ inputs.release_images || github.event_name == 'push' || github.event_name == 'schedule' }} - needs: [ + needs: [ # The job have to wait for all the artifacts are built. allocate-runners, + build-linux-amd64-artifacts, + build-linux-arm64-artifacts, + build-macos-artifacts, + build-windows-artifacts, release-images-to-dockerhub, ] runs-on: ubuntu-20.04 @@ -338,11 +342,12 @@ jobs: publish-github-release: name: Create GitHub release and upload artifacts if: ${{ inputs.publish_github_release || github.event_name == 'push' || github.event_name == 'schedule' }} - needs: [ + needs: [ # The job have to wait for all the artifacts are built. allocate-runners, build-linux-amd64-artifacts, build-linux-arm64-artifacts, build-macos-artifacts, + build-windows-artifacts, release-images-to-dockerhub, ] runs-on: ubuntu-20.04