Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,15 @@ jobs:

gh release create "$staged" --draft --target "$GITHUB_SHA" \
--title "$tag" --notes "Automated build of ${GITHUB_SHA:0:7}."
gh release upload "$staged" "${assets[@]}"
# An upload can time out (HTTP 408) on the GitHub side with nothing
# wrong in the build. --clobber replaces an asset a cut-off attempt
# left behind, so trying again is safe.
for attempt in 1 2 3; do
gh release upload --clobber "$staged" "${assets[@]}" && break
[ "$attempt" -lt 3 ] || exit 1
echo "upload failed; trying again (attempt $attempt of 3)" >&2
sleep $((attempt * 10))
done

# Sizes, not just presence: an upload cut off partway still leaves a
# named asset behind, and a truncated binary is the one outcome this
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,15 @@ jobs:
gh release create "$staged" --draft --prerelease --latest=false \
--target "$GITHUB_SHA" --title "CodeTrial desktop (main)" \
--notes "Automated desktop build of ${GITHUB_SHA:0:7}. The installers are not signed yet; docs/desktop.md lists what that means on each platform."
gh release upload "$staged" "${assets[@]}"
# An upload can time out (HTTP 408) on the GitHub side with nothing
# wrong in the build. --clobber replaces an asset a cut-off attempt
# left behind, so trying again is safe.
for attempt in 1 2 3; do
gh release upload --clobber "$staged" "${assets[@]}" && break
[ "$attempt" -lt 3 ] || exit 1
echo "upload failed; trying again (attempt $attempt of 3)" >&2
sleep $((attempt * 10))
done

# Sizes, not just presence: a cut-off upload still leaves a named
# asset behind.
Expand Down
Loading