Skip to content

Commit e8e4755

Browse files
Adwait DeshpandeAdwait Deshpande
authored andcommitted
ci: check for built artifacts before packaging and fail clearly
1 parent 5da9f9f commit e8e4755

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,21 @@ jobs:
6464
*windows*)
6565
BIN_PATH=target/${{ matrix.target }}/release/devspace-sweeper.exe
6666
ARCHIVE_NAME=devspace-sweeper-${VERSION}-${{ matrix.target }}.zip
67+
if [ ! -f "$BIN_PATH" ]; then
68+
echo "Error: build artifact not found: $BIN_PATH" >&2
69+
exit 1
70+
fi
6771
cp "$BIN_PATH" "$OUTDIR/"
6872
cp README.md LICENSE "$OUTDIR/" || true
6973
(cd "$OUTDIR" && zip -r "${ARCHIVE_NAME}" .)
7074
;;
7175
*)
7276
BIN_PATH=target/${{ matrix.target }}/release/devspace-sweeper
7377
ARCHIVE_NAME=devspace-sweeper-${VERSION}-${{ matrix.target }}.tar.gz
78+
if [ ! -f "$BIN_PATH" ]; then
79+
echo "Error: build artifact not found: $BIN_PATH" >&2
80+
exit 1
81+
fi
7482
cp "$BIN_PATH" "$OUTDIR/"
7583
cp README.md LICENSE "$OUTDIR/" || true
7684
# Avoid failing if files change during archiving

0 commit comments

Comments
 (0)