@@ -46,6 +46,9 @@ jobs:
47 npm run build
47 npm run build
48 (cd dist && zip -qr "../diagonal-extension-${DIAGONAL_VERSION}.zip" .)
48 (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
49 cat dist/manifest.json | head -5
52 cat dist/manifest.json | head -5
51 - name: Publish release
54 - name: Publish release
@@ -54,10 +57,10 @@ jobs:
54 VERSION: ${{ steps.version.outputs.version }}
57 VERSION: ${{ steps.version.outputs.version }}
56 asset="diagonal-extension-${VERSION}.zip"
59 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"
58 if gh release view "$VERSION" >/dev/null 2>&1; then
61 if gh release view "$VERSION" >/dev/null 2>&1; then
59 # Two commits in the same minute share a version: refresh the asset on the existing release.
62 # 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
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