Skip to content

Conversation

@fernandotonon
Copy link
Owner

Summary

  • Add update-homebrew-cask job to the deploy workflow
  • Automatically updates the Homebrew cask after macOS DMG is uploaded to a release
  • Downloads the DMG, calculates SHA256, and updates the cask file in homebrew-qtmesheditor repo

How it works

  1. Runs after build-macos job completes (only on release publish)
  2. Downloads the DMG from the GitHub release
  3. Calculates the SHA256 hash
  4. Clones the homebrew-qtmesheditor repo
  5. Updates version and sha256 in Casks/qtmesheditor.rb
  6. Commits and pushes the changes

Setup Required

Create a GitHub secret named HOMEBREW_TAP_TOKEN:

  1. Go to Settings → Secrets and variables → Actions
  2. Create a new secret with a GitHub PAT that has repo scope
  3. The PAT needs write access to fernandotonon/homebrew-qtmesheditor

Test plan

  • Create a test release to verify the workflow runs correctly
  • Verify the Homebrew cask is updated with correct version and SHA256

🤖 Generated with Claude Code

- Add update-homebrew-cask job that runs after macOS build
- Downloads the DMG from the release
- Calculates SHA256 hash
- Updates version and sha256 in the cask file
- Commits and pushes to homebrew-qtmesheditor repo

Requires HOMEBREW_TAP_TOKEN secret with repo write access.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@fernandotonon fernandotonon merged commit 6eb8b36 into master Jan 29, 2026
11 checks passed
@fernandotonon fernandotonon deleted the feature/homebrew-auto-update branch January 29, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants