Skip to content

Commit 81f4cfe

Browse files
author
darkpoet78
committed
workflow
1 parent 9698360 commit 81f4cfe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build-release-firmware.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ jobs:
128128
for yaml_file in generated_yamls/*.yaml; do
129129
filename=$(basename "$yaml_file" .yaml)
130130
echo "🔨 Building ${filename}..."
131+
132+
# Clean build directory to prevent mix-ups
133+
rm -rf generated_yamls/.esphome/build/*
134+
135+
# Compile the firmware
131136
esphome compile "$yaml_file"
132137
device_name=$(find generated_yamls/.esphome/build/ -maxdepth 1 -type d ! -name "build" -printf "%f\n" 2>/dev/null | head -1)
133138
if [ -z "$device_name" ]; then

0 commit comments

Comments
 (0)