mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-30 19:38:17 +03:00
Ignore cache on GIT hash change (new commit or release) (#1787)
* Add hash to all html, css, and js URLs * Update build.yaml * Update build.yaml * . * . Co-authored-by: CaCO3 <caco@ruinelli.ch>
This commit is contained in:
12
.github/workflows/build.yaml
vendored
12
.github/workflows/build.yaml
vendored
@@ -58,6 +58,10 @@ jobs:
|
||||
#run: echo "Testing... ${{ github.ref_name }}, ${{ steps.vars.outputs.sha_short }}" > ./sd-card/html/version.txt; mkdir -p ./code/.pio/build/esp32cam/; cd ./code/.pio/build/esp32cam/; echo "${{ steps.vars.outputs.sha_short }}" > firmware.bin; cp firmware.bin partitions.bin; cp firmware.bin bootloader.bin # Testing
|
||||
run: cd code; platformio run --environment esp32cam
|
||||
|
||||
- name: Set Hash in all Web UI files
|
||||
run: cd sd-card/html; find . -type f -exec sed -i 's/$COMMIT_HASH/${{ steps.vars.outputs.sha_short }}/g' {} \;
|
||||
|
||||
|
||||
- name: Store generated files in cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
@@ -65,7 +69,7 @@ jobs:
|
||||
./code/.pio/build/esp32cam/firmware.bin
|
||||
./code/.pio/build/esp32cam/partitions.bin
|
||||
./code/.pio/build/esp32cam/bootloader.bin
|
||||
./sd-card/html/version.txt
|
||||
./sd-card/html/*
|
||||
key: ${{ github.run_number }}
|
||||
|
||||
|
||||
@@ -91,7 +95,7 @@ jobs:
|
||||
./code/.pio/build/esp32cam/firmware.bin
|
||||
./code/.pio/build/esp32cam/partitions.bin
|
||||
./code/.pio/build/esp32cam/bootloader.bin
|
||||
./sd-card/html/version.txt
|
||||
./sd-card/html/*
|
||||
key: ${{ github.run_number }}
|
||||
|
||||
- name: Set Variables
|
||||
@@ -149,7 +153,7 @@ jobs:
|
||||
./code/.pio/build/esp32cam/firmware.bin
|
||||
./code/.pio/build/esp32cam/partitions.bin
|
||||
./code/.pio/build/esp32cam/bootloader.bin
|
||||
./sd-card/html/version.txt
|
||||
./sd-card/html/*
|
||||
key: ${{ github.run_number }}
|
||||
|
||||
- name: Set Variables
|
||||
@@ -202,7 +206,7 @@ jobs:
|
||||
./code/.pio/build/esp32cam/firmware.bin
|
||||
./code/.pio/build/esp32cam/partitions.bin
|
||||
./code/.pio/build/esp32cam/bootloader.bin
|
||||
./sd-card/html/version.txt
|
||||
./sd-card/html/*
|
||||
key: ${{ github.run_number }}
|
||||
|
||||
- name: Set Variables
|
||||
|
||||
Reference in New Issue
Block a user