Skip to content

Commit 1bc5783

Browse files
committed
Prevent untracked files in releases
Signed-off-by: Joffrey F <[email protected]>
1 parent 1125004 commit 1bc5783

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/release.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ if [ -z $VERSION ]; then
1212
exit 1
1313
fi
1414

15-
echo "##> Removing stale build files"
16-
rm -rf ./build || exit 1
15+
echo "##> Removing stale build files and other untracked files"
16+
git clean -x -d -i
17+
test -z "$(git clean -x -d -n)" || exit 1
1718

1819
echo "##> Tagging the release as $VERSION"
1920
git tag $VERSION

0 commit comments

Comments
 (0)