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

ci(dispatch.yml): dispatch to fermyon/homebrew-tap #2428

Merged
merged 2 commits into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
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
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -358,3 +358,17 @@ jobs:
with:
name: spin
path: _dist/spin-${{ env.RELEASE_VERSION }}-static-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz

dispatch-homebrew-tap:
name: Dispatch spin-release event to fermyon/homebrew-tap
needs: create-gh-release
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'fermyon' }} && ${{ startsWith(github.ref, 'refs/tags/v') }}
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.DEST_REPO_ACCESS_TOKEN }}
repository: fermyon/homebrew-tap
event-type: spin-release
client-payload: '{"version": "${{ github.ref_name }}"}'
5 changes: 2 additions & 3 deletions docs/content/release-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,8 @@ Otherwise, switch to the branch locally.
`--certificate-identity` value should match this release, e.g.
`https://github.com/fermyon/spin/.github/workflows/release.yml@refs/tags/v2.0.0`.

1. Unless this is a release candidate, create a Pull Request into Fermyon's Hombrew tap
repository updating the [Spin formula](https://github.com/fermyon/homebrew-tap/blob/main/Formula/spin.rb).
In the formula, update the version, point to the latest release artifacts, and set their correct sha256 digests.
1. Unless this is a release candidate, review and merge the bot-created Pull Request
in the [fermyon/homebrew-tap repository](https://github.com/fermyon/homebrew-tap/).

The release is now complete!

Expand Down
Loading