Skip to content

Commit 98a76c4

Browse files
committed
fix(ci): upload DMG to public tap repo for Homebrew distribution
Main repo is private so release assets aren't accessible via curl. Upload DMG to pasrom/homebrew-meeting-transcriber releases instead.
1 parent 0cd9a01 commit 98a76c4

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,18 +122,26 @@ jobs:
122122
VERSION="${{ steps.version.outputs.version }}"
123123
SHA="${{ steps.sha.outputs.sha256 }}"
124124
125-
# Clone the tap repo
125+
DMG=".build/release/MeetingTranscriber-${VERSION}.dmg"
126+
127+
# Upload DMG to public tap repo (main repo is private)
128+
gh release create "v${VERSION}" "$DMG" \
129+
--repo pasrom/homebrew-meeting-transcriber \
130+
--title "v${VERSION}" \
131+
--notes "DMG for Homebrew Cask distribution" \
132+
|| gh release upload "v${VERSION}" "$DMG" \
133+
--repo pasrom/homebrew-meeting-transcriber --clobber
134+
135+
# Clone the tap repo and update Cask formula
126136
git clone https://x-access-token:${GH_TOKEN}@github.com/pasrom/homebrew-meeting-transcriber.git /tmp/tap
127137
cd /tmp/tap
128138
129-
# Update version and SHA256 in the formula
130139
sed -i '' "s/version \".*\"/version \"${VERSION}\"/" Casks/meeting-transcriber.rb
131140
sed -i '' "s/sha256 \".*\"/sha256 \"${SHA}\"/" Casks/meeting-transcriber.rb
132141
133142
echo "Updated Cask formula:"
134143
cat Casks/meeting-transcriber.rb
135144
136-
# Commit and push
137145
git config user.name "github-actions[bot]"
138146
git config user.email "github-actions[bot]@users.noreply.github.com"
139147
git add Casks/meeting-transcriber.rb

0 commit comments

Comments
 (0)