Skip to content
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
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,24 @@ jobs:
echo "tag=v$VERSION" >> "$GITHUB_OUTPUT"
echo "zip=dist/Browseroute-$VERSION.zip" >> "$GITHUB_OUTPUT"

- name: Verify Homebrew tap token
env:
GH_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
run: |
if [ -z "$GH_TOKEN" ]; then
echo "::error::HOMEBREW_TAP_TOKEN is not set. The cask cannot be published."
exit 1
fi
# The tap is public: git clone succeeds without credentials. A dead
# or read-only token only fails at git push, after the GitHub release
# and appcast.xml are already published. Probe before notarize.
git ls-remote "https://x-access-token:${GH_TOKEN}@github.com/TerrifiedBug/homebrew-tap.git" >/dev/null
CAN_PUSH="$(gh api repos/TerrifiedBug/homebrew-tap --jq .permissions.push)"
if [ "$CAN_PUSH" != "true" ]; then
echo "::error::HOMEBREW_TAP_TOKEN cannot push to TerrifiedBug/homebrew-tap."
exit 1
fi

- name: Import signing certificate
env:
APP_P12: ${{ secrets.DEVELOPER_ID_APP_P12_BASE64 }}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ All notable changes to Browseroute are documented here (Keep a Changelog style).

- Developer ID-signed, notarized GitHub releases (same methodology as yap and TickerBar) and a Homebrew cask.
- Sparkle EdDSA key baked in; Check for Updates is live on Developer ID-signed GitHub builds (ad-hoc and Homebrew stay off). The cert check runs after launch and does not hash sealed resources.
- Release CI fails before notarize if `HOMEBREW_TAP_TOKEN` is missing, expired, or cannot push to the tap.
Loading