Skip to content

Commit 73f9b7b

Browse files
committed
ci(dispatch.yml): dispatch to fermyon/homebrew-tap
Signed-off-by: Vaughn Dice <[email protected]>
1 parent 4987d49 commit 73f9b7b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,3 +358,17 @@ jobs:
358358
with:
359359
name: spin
360360
path: _dist/spin-${{ env.RELEASE_VERSION }}-static-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz
361+
362+
dispatch-homebrew-tap:
363+
name: Dispatch spin-release event to fermyon/homebrew-tap
364+
needs: create-gh-release
365+
runs-on: ubuntu-latest
366+
if: ${{ github.repository_owner == 'fermyon' }} && ${{ startsWith(github.ref, 'refs/tags/v') }}
367+
steps:
368+
- name: Repository Dispatch
369+
uses: peter-evans/repository-dispatch@v3
370+
with:
371+
token: ${{ secrets.DEST_REPO_ACCESS_TOKEN }}
372+
repository: fermyon/homebrew-tap
373+
event-type: spin-release
374+
client-payload: '{"version": "${{ github.ref_name }}"}'

0 commit comments

Comments
 (0)