Skip to content

Commit a8e29a7

Browse files
sprawfclaude
andcommitted
build_mac: auto-publish DMG to latest GitHub Release after build
On every successful Mac build, the DMG is now automatically uploaded to the latest release so anyone can download it directly from the Releases page without needing a GitHub account or Actions access. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ce0bcdb commit a8e29a7

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

‎.github/workflows/build_mac.yml‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,21 @@ jobs:
127127
"Hotkeys-mac.dmg" \
128128
"dmg_src/"
129129
130-
# ── 9. Upload DMG as workflow artifact ───────────────────────────────────
131-
- name: Upload DMG
130+
# ── 9. Upload DMG as workflow artifact (90-day cache) ────────────────────
131+
- name: Upload DMG artifact
132132
uses: actions/upload-artifact@v4
133133
with:
134134
name: Hotkeys-mac
135135
path: Hotkeys-mac.dmg
136136
retention-days: 90
137+
138+
# ── 10. Publish to latest GitHub Release ─────────────────────────────────
139+
- name: Publish to GitHub Release
140+
env:
141+
GH_TOKEN: ${{ github.token }}
142+
run: |
143+
# Find the latest release tag and attach the DMG to it
144+
LATEST_TAG=$(gh release list --limit 1 --json tagName --jq '.[0].tagName')
145+
echo "Publishing to release: $LATEST_TAG"
146+
gh release upload "$LATEST_TAG" Hotkeys-mac.dmg --clobber
147+
echo "Published: $(gh release view $LATEST_TAG --json assets --jq '.assets[].name')"

0 commit comments

Comments
 (0)