Skip to content

Commit 4a96e43

Browse files
authored
Merge pull request #2428 from vdice/ci/dispatch-homebrew-tap
ci(dispatch.yml): dispatch to fermyon/homebrew-tap
2 parents 553e0bd + ccb3b4f commit 4a96e43

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
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 }}"}'

docs/content/release-process.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,8 @@ Otherwise, switch to the branch locally.
116116
`--certificate-identity` value should match this release, e.g.
117117
`https://github.com/fermyon/spin/.github/workflows/release.yml@refs/tags/v2.0.0`.
118118
119-
1. Unless this is a release candidate, create a Pull Request into Fermyon's Hombrew tap
120-
repository updating the [Spin formula](https://github.com/fermyon/homebrew-tap/blob/main/Formula/spin.rb).
121-
In the formula, update the version, point to the latest release artifacts, and set their correct sha256 digests.
119+
1. Unless this is a release candidate, review and merge the bot-created Pull Request
120+
in the [fermyon/homebrew-tap repository](https://github.com/fermyon/homebrew-tap/).
122121
123122
The release is now complete!
124123

0 commit comments

Comments
 (0)