diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d275915..12b2640 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -137,7 +137,8 @@ jobs: ruby -pi -e 'gsub(/sha256 "[^"]+"/, "sha256 \"#{ENV.fetch("DMG_SHA256")}\"")' "$tap_dir/Casks/capture-this.rb" cd "$tap_dir" - brew audit --cask --new capture-this + HOMEBREW_NO_AUTO_UPDATE=1 brew tap meck93/tap "$tap_dir" + HOMEBREW_NO_AUTO_UPDATE=1 brew audit --cask --new meck93/tap/capture-this git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" diff --git a/docs/homebrew-release.md b/docs/homebrew-release.md index 457e170..8332f1a 100644 --- a/docs/homebrew-release.md +++ b/docs/homebrew-release.md @@ -52,7 +52,7 @@ The release workflow will: 8. Clone `meck93/homebrew-tap`. 9. Copy `Casks/capture-this.rb` from this repository into the tap. 10. Update `Casks/capture-this.rb` with the release version and DMG checksum. -11. Run `brew audit --cask --new capture-this` from inside the tap checkout. +11. Register the temporary checkout as `meck93/tap` and run `brew audit --cask --new meck93/tap/capture-this`. 12. Commit and push the tap update. The first successful release creates `Casks/capture-this.rb` in the tap if it does not exist yet. @@ -114,7 +114,8 @@ sha256 "DMG_SHA256_FROM_SHASUM" Validate and push: ```bash -brew audit --cask --new capture-this +brew tap meck93/tap . +brew audit --cask --new meck93/tap/capture-this git add Casks/capture-this.rb git commit -m "chore: update CaptureThis to 0.1.0" git push