You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
release.yml: verify by asset size, not just name presence
Run #19 (the v1.1.1 rebuild meant to fix the missing .exe) reported success
but the exe still 404s. Root cause: the previous run left a ghost asset
entry on the release under the right name but with no real content (a
failed/partial upload that still registered metadata) — my earlier
verify-and-retry step only checked whether a name existed in the asset
list, so it saw "Modelforge-Setup-1.1.1.exe" already there and skipped the
retry entirely.
Now compares actual byte size (local file vs gh release view's reported
asset size), deletes any mismatched/ghost asset before re-uploading, and
re-checks the size again after the retry rather than trusting gh's exit
code alone.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
if [ -z "$remote_size" ] || [ "$remote_size" != "$local_size" ]; then
174
+
echo "::warning::Asset '$name' is missing or wrong size on the release (local: ${local_size} bytes, remote: ${remote_size:-none}) — deleting any partial copy and re-uploading."
0 commit comments