@@ -46,6 +46,9 @@ jobs:
4646 run: |
4747 npm run build
4848 (cd dist && zip -qr "../diagonal-extension-${DIAGONAL_VERSION}.zip" .)
49+ # Same zip under a fixed name: releases/latest/download/diagonal-extension.zip is what the
50+ # Homebrew cask (iko-soy/homebrew-tap, Casks/diagonal.rb) downloads.
51+ cp "diagonal-extension-${DIAGONAL_VERSION}.zip" diagonal-extension.zip
4952 cat dist/manifest.json | head -5
5053
5154 - name: Publish release
@@ -54,10 +57,10 @@ jobs:
5457 VERSION: ${{ steps.version.outputs.version }}
5558 run: |
5659 asset="diagonal-extension-${VERSION}.zip"
57− notes="Built from ${GITHUB_SHA::7}. Unzip, load the folder at brave://extensions (Developer mode → Load unpacked), then install the native host once from Terminal: bash <that folder>/install-host.command"
60+ notes="Built from ${GITHUB_SHA::7}. Install with: brew install iko-soy/tap/diagonal. Or by hand: unzip, load the folder at brave://extensions (Developer mode → Load unpacked), then install the native host once from Terminal: bash <that folder>/install-host.command"
5861 if gh release view "$VERSION" >/dev/null 2>&1; then
5962 # Two commits in the same minute share a version: refresh the asset on the existing release.
60− gh release upload "$VERSION" "$asset" --clobber
63+ gh release upload "$VERSION" "$asset" diagonal-extension.zip --clobber
6164 else
62− gh release create "$VERSION" "$asset" --target "$GITHUB_SHA" --title "Diagonal $VERSION" --notes "$notes"
65+ gh release create "$VERSION" "$asset" diagonal-extension.zip --target "$GITHUB_SHA" --title "Diagonal $VERSION" --notes "$notes" --latest
6366 fi