From be7bb38dd3ee9965bb0db88a0c29174a3e26a687 Mon Sep 17 00:00:00 2001 From: Daniel Kucera Date: Sat, 7 Oct 2023 19:14:27 +0200 Subject: [PATCH] add sha to fw file --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4a07074..dba11f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,13 +34,13 @@ jobs: - name: Prepare release dir run: mkdir release - name: Build v5.x - run: pio run -e esp32-c3 ; cp .pio/build/esp32-c3/firmware.bin release/firmware-HW_v5.x.bin + run: pio run -e esp32-c3 ; cp .pio/build/esp32-c3/firmware.bin release/firmware-HW_v5.x-${GITHUB_SHA::6}.bin - name: Assemble v5.x fullflash - run: ./fullflash.sh ; mv firmware-fullflash-HW_v5.x.bin release/ + run: ./fullflash.sh ; mv firmware-fullflash-HW_v5.x.bin release/firmware-fullflash-HW_v5.x-${GITHUB_SHA::6}.bin - name: Build v4.x - run: pio run -e esp12e ; mv .pio/build/esp12e/firmware.bin release/firmware-HW_v4.x.bin + run: pio run -e esp12e ; mv .pio/build/esp12e/firmware.bin release/firmware-HW_v4.x-${GITHUB_SHA::6}.bin - name: Build v3.0 - run: pio run -e esp12e-v3 ; mv .pio/build/esp12e-v3/firmware.bin release/firmware-HW_v3.x.bin + run: pio run -e esp12e-v3 ; mv .pio/build/esp12e-v3/firmware.bin release/firmware-HW_v3.x-${GITHUB_SHA::6}.bin - name: Upload artifacts uses: actions/upload-artifact@v3 with: