fix: switch OTA delivery to direct attached artifacts
Some checks failed
OTA build / build-ota (push) Failing after 2m4s

This commit is contained in:
Hermes
2026-08-30 12:07:32 -05:00
parent 051a40290c
commit 6e45a91b7f

View File

@@ -36,19 +36,20 @@ jobs:
timestamp="$(date -u +%Y-%m-%dT%H-%M-%SZ)"
mkdir -p dist/ota
found=0
for fw in .pio/build/*/firmware.bin; do
for fw in .pio/build/*/firmware.bin .pio/build/*/firmware.hex; do
[ -f "$fw" ] || continue
env_name="$(basename "$(dirname "$fw")")"
cp "$fw" "dist/ota/${project_name}_${env_name}_${timestamp}.bin"
ext="${fw##*.}"
cp "$fw" "dist/ota/${project_name}_${env_name}_${timestamp}.${ext}"
found=1
done
if [ "$found" -eq 0 ]; then
echo 'No firmware.bin artifacts were produced.' >&2
echo 'No firmware.bin or firmware.hex artifacts were produced.' >&2
exit 1
fi
find dist/ota -maxdepth 1 -type f | sort
- name: Upload direct OTA files
- name: Upload direct OTA files as artifacts
uses: actions/upload-artifact@v7
with:
name: ota-files