Name the released ISO after its full candidate version
--rc appended a bare -rc suffix regardless of the version passed, so every candidate of a train uploaded over the same omarchy-X.Y.Z-rc.iso and nobody could tell rc1 from rc2 by name or URL. A version that already numbers its candidate (4.0.2rc2) is the complete artifact name; the suffix remains for unnumbered candidate builds.
This commit is contained in:
1 file changed
+8
@@ -42,6 +42,14 @@ if [[ -z "${BUILD_VERSION-}" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# A version that already numbers its candidate (4.0.2rc2) is the complete
|
||||
# artifact name; the bare -rc suffix exists only for an unnumbered candidate.
|
||||
# Without this, every candidate of a train uploads over the same
|
||||
# omarchy-X.Y.Z-rc.iso and testers cannot tell which rc they are holding.
|
||||
if [[ $BUILD_VERSION == *rc* ]]; then
|
||||
RELEASE_SUFFIX=""
|
||||
fi
|
||||
|
||||
BUILD_ROOT=$(realpath "${BASH_SOURCE[0]%/*}/..")
|
||||
BUILD_RELEASE_PATH="$BUILD_ROOT/release"
|
||||
|
||||
|
||||
Reference in new issue
Block a user