diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 5df462260c..d12b2e0f09 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -76,14 +76,6 @@ jobs: docker tag ghcr.io/flyteorg/${{ matrix.component }}:${{ steps.set_version.outputs.version }} ghcr.io/flyteorg/${{ matrix.component }}-release:latest docker push ghcr.io/flyteorg/${{ matrix.component }}-release:latest - - name: Repository Dispatch - uses: peter-evans/repository-dispatch@v2 - with: - token: ${{ secrets.FLYTE_BOT_PAT }} - repository: flyteorg/flyteorg.github.io - event-type: release - client-payload: '{"tag": "${{ steps.set_version.outputs.version }}"}' - helm-release: name: Flyte helm release runs-on: ubuntu-latest @@ -129,6 +121,7 @@ jobs: run: | make prepare_artifacts git stash + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: @@ -136,3 +129,17 @@ jobs: args: release --rm-dist --release-notes=CHANGELOG/CHANGELOG-${{ github.event.inputs.version }}.md env: GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }} + + repository-dispatch: + name: Repository Dispatch + runs-on: ubuntu-latest + needs: [bump-version, publish-flyte-component-image] + if: ${{ !contains('${{ needs.bump-version.outputs.version }}', 'b') }} + steps: + - name: Create an event for the release + uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.FLYTE_BOT_PAT }} + repository: flyteorg/flyteorg.github.io + event-type: release + client-payload: '{"tag": "${{ needs.bump-version.outputs.version }}"}' \ No newline at end of file