Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix repository dispatch #2551

Merged
merged 8 commits into from
May 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -129,10 +121,25 @@ jobs:
run: |
make prepare_artifacts
git stash

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
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 }}"}'