Browse Source

use new cache after pack-for-OTA-v2

Frank Haverland 3 năm trước cách đây
mục cha
commit
8e39e83c38
1 tập tin đã thay đổi với 7 bổ sung10 xóa
  1. 7 10
      .github/workflows/build.yaml

+ 7 - 10
.github/workflows/build.yaml

@@ -162,8 +162,12 @@ jobs:
       uses: actions/cache@v3
       uses: actions/cache@v3
       with:
       with:
         path: |
         path: |
+          ./code/.pio/build/esp32cam/firmware.bin
+          ./code/.pio/build/esp32cam/partitions.bin
+          ./code/.pio/build/esp32cam/bootloader.bin
+          ./sd-card/html/version.txt
           ./dist
           ./dist
-        key: ${{ github.run_number }}-dist
+        key: ${{ github.run_number }}-pack-for-OTA-v2
 
 
 
 
 
 
@@ -207,15 +211,8 @@ jobs:
             ./code/.pio/build/esp32cam/partitions.bin
             ./code/.pio/build/esp32cam/partitions.bin
             ./code/.pio/build/esp32cam/bootloader.bin
             ./code/.pio/build/esp32cam/bootloader.bin
             ./sd-card/html/version.txt
             ./sd-card/html/version.txt
-            ./dist
-          key: ${{ github.run_number }}
-
-      - name: Get generated files from cache
-        uses: actions/cache@v3
-        with:
-          path: |
-            ./dist
-          key: ${{ github.run_number }}-dist
+             ./dist
+          key: ${{ github.run_number }}-pack-for-OTA-v2
 
 
       - name: Set Variables
       - name: Set Variables
         id: vars
         id: vars