GitHub answers 201 when it accepts an upload, not when the file is stored: the
1.35 GiB transfer died on a DNS hiccup and left a "starter" asset, which the
next run then treated as already published. Only state=uploaded now counts, an
incomplete asset is deleted before the retry, and the result is checked again
after the upload instead of being assumed.
The first real 1.35 GiB publication failed differently on each forge and the
bare status codes said nothing: Gitea answered 413 from nginx, long before its
own size limit, while GitHub broke on a DNS hiccup mid-transfer and showed an
unreadable "000000". Upload failures now name the cause, and curl retries a
transfer that dies on a transient network error.
The build needs mount() and loop devices, which a CI job does not always get,
while the publication only needs the API tokens. --iso takes the artefact as an
argument so an image built on the usual host can be released from any machine.
The official build and its two publications were started by hand, so a VERSION
bump could stay unpublished indefinitely. Touching VERSION on Main now starts
the workflow, which asks release.sh whether the version line actually changed,
then builds and opens the Gitea and GitHub releases with the ISO attached.
Bumping VERSION said what shipped, but nothing tied it to an ISO nor to a
release entry: an ISO could be built and never published, or published twice
with different notes. One script now detects the new 0.8.* -> 0.9.* line,
builds through build-offi.sh, then creates or updates the Gitea and GitHub
releases with the ISO attached, so a failed upload is replayed with
--skip-build instead of rebuilding.