From bd32cadfa370ec72a985784bf1f5c1af09ebbfb0 Mon Sep 17 00:00:00 2001 From: Christopher Nadler Date: Fri, 11 Oct 2024 04:57:24 +0200 Subject: [PATCH] Workflow improved image will be build --- .github/workflows/ESP32.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ESP32.yml b/.github/workflows/ESP32.yml index 7c69f79..743090c 100644 --- a/.github/workflows/ESP32.yml +++ b/.github/workflows/ESP32.yml @@ -149,12 +149,14 @@ jobs: fi echo "Running command: $FINAL_CMD" eval $FINAL_CMD - mv ~/micropython/ports/esp32/build-${BUILD_TARGET}/micropython.bin ~/firmware.bin - + cd ~/micropython/ports/esp32/build-${BUILD_TARGET} + python ../makeimg.py sdkconfig bootloader/bootloader.bin partition_table/partition-table.bin micropython.bin firmware.bin micropython.uf2 + mkdir -p ~/artifacts + mv ~/micropython/ports/esp32/build-${BUILD_TARGET}/firmware.bin ~/artifacts/firmware.bin - name: Upload firmware artifact uses: actions/upload-artifact@v4 with: name: firmware-${{ env.FW_NAME }} - path: ~/firmware.bin + path: ~/artifacts/** retention-days: 5 \ No newline at end of file