diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index d12b2e0f09..419524a92e 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -129,17 +129,3 @@ 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 diff --git a/.github/workflows/update_site.yml b/.github/workflows/update_site.yml new file mode 100644 index 0000000000..222c1d03c8 --- /dev/null +++ b/.github/workflows/update_site.yml @@ -0,0 +1,25 @@ +name: Update version in flyte.org +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' + + +jobs: + repository-dispatch: + name: Repository Dispatch + runs-on: ubuntu-latest + steps: + - name: Fetch version + id: bump + run: | + # from refs/tags/v1.2.3 get 1.2.3 + VERSION=$(echo $GITHUB_REF | sed 's#.*/v##') + echo "::set-output name=version::$VERSION" + - 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": "${{ steps.bump.outputs.version }}"}'