ci(build): use mv instead of cp to avoid duplicate artifacts

cp left the original zip alongside the renamed copy, so the glob
matched both, doubling artifact size. mv removes the original.
This commit is contained in:
Enginex0
2026-03-11 12:51:02 +01:00
parent ff7539f158
commit 93ec464d02
+4 -4
View File
@@ -89,11 +89,11 @@ jobs:
exit 1
fi
cp "$RELEASE_FILE" "out/TEESimulator-${VER}-Release.zip"
cp "$DEBUG_FILE" "out/TEESimulator-${VER}-Debug.zip"
mv "$RELEASE_FILE" "out/TEESimulator-${VER}-Release.zip"
mv "$DEBUG_FILE" "out/TEESimulator-${VER}-Debug.zip"
echo "Release: $(basename "$RELEASE_FILE") -> TEESimulator-${VER}-Release.zip ($(du -h "$RELEASE_FILE" | cut -f1))"
echo "Debug: $(basename "$DEBUG_FILE") -> TEESimulator-${VER}-Debug.zip ($(du -h "$DEBUG_FILE" | cut -f1))"
echo "Release: TEESimulator-${VER}-Release.zip ($(du -h "out/TEESimulator-${VER}-Release.zip" | cut -f1))"
echo "Debug: TEESimulator-${VER}-Debug.zip ($(du -h "out/TEESimulator-${VER}-Debug.zip" | cut -f1))"
env:
VER: ${{ steps.ver.outputs.version }}