Skip to content

Commit 046a251

Browse files
committed
[CI] Enable test env removing during the publish process
1 parent eef8c50 commit 046a251

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

scripts/prepare_deploy.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ echo "renaming bin files with the board name"
44
rename -v 's:/:-:g' .pio/build/*/*.bin
55
mkdir toDeploy
66
rename 's/.pio-build-//' .*.bin
7-
# don't publish binaries for *-all and *-test env
8-
rm *-all.bin *-test.bin
97
(
108
cd .pio/libdeps
119
echo "replace space by _ in folder names"
@@ -15,12 +13,11 @@ rm *-all.bin *-test.bin
1513
do
1614
zip -r "${i%/}-libraries.zip" "$i"
1715
done
18-
# don't publish libraries for *-test env
19-
rm *-test.zip
2016
ls -lA
2117
mv *.zip ../../toDeploy
2218
)
23-
19+
# remove binaries for *-all*, *-test* env and only zip containing *-test*
20+
rm -f *-all*.bin *-test*.bin *-test*.zip
2421
echo "zipping code and licence"
2522
zip -r OpenMQTTGateway_sources.zip main LICENSE.txt
2623
mv *.zip toDeploy

0 commit comments

Comments
 (0)