Cut the rc ISO under its numbered candidate version

cmd_rc handed maybe_iso the bare train version, so omarchy-iso-release
named every candidate omarchy-X.Y.Z-rc.iso — rc2 uploaded over rc1's
URL. Pass the pinned rcN version instead; paired with omarchy-iso's
f9be60b, the artifact becomes omarchy-4.0.2rc2.iso. The ship path
keeps passing the final version.
This commit is contained in:
Ryan Hughes committed 2026-08-30 17:15:52 -04:00
1 parent cb84ec0e69
commit 8bfa054676
1 file changed
+3 -3
+3 -3
View File
@@ -659,13 +659,13 @@ cmd_rc() {
pub=$(published_version rc 2>/dev/null) || pub="" pub=$(published_version rc 2>/dev/null) || pub=""
if [[ "${pub%-*}" == "$pin_ver" ]]; then if [[ "${pub%-*}" == "$pin_ver" ]]; then
print_success "$pin_ver is already cut from this head and published to rc" print_success "$pin_ver is already cut from this head and published to rc"
maybe_iso "$version" rc "$iso_mode" maybe_iso "$pin_ver" rc "$iso_mode"
return 0 return 0
fi fi
print_info "$pin_ver is pinned from this head but not published yet — re-triggering the build" print_info "$pin_ver is pinned from this head but not published yet — re-triggering the build"
trigger_rc_build || true trigger_rc_build || true
[[ "$wait" == true ]] && wait_for_published rc "$pin_ver" [[ "$wait" == true ]] && wait_for_published rc "$pin_ver"
maybe_iso "$version" rc "$iso_mode" maybe_iso "$pin_ver" rc "$iso_mode"
return 0 return 0
fi fi
fi fi
@@ -683,7 +683,7 @@ cmd_rc() {
if [[ "$wait" == true ]]; then if [[ "$wait" == true ]]; then
wait_for_published rc "$new_ver" || return 1 wait_for_published rc "$new_ver" || return 1
fi fi
maybe_iso "$version" rc "$iso_mode" maybe_iso "$new_ver" rc "$iso_mode"
echo "" echo ""
print_info "Test the candidate, then: omarchy-release ship (or pick + rc again)" print_info "Test the candidate, then: omarchy-release ship (or pick + rc again)"
} }