Просмотр исходного кода

fix problem with prepare release (#1417)

* fix kernel panic (vector out of range) in getReadoutRawString

* Update

* Revert "Update"

This reverts commit b50be7e8259e14410f38fe6ef94b90a62afb0960.

* fix key of caches

* fix key of caches

* fix key caches

* fix cache keys

* fix cache keys

* move set variables to top

* debug

Co-authored-by: jomjol <30766535+jomjol@users.noreply.github.com>
Frank Haverland 3 лет назад
Родитель
Сommit
f4d345b902
1 измененных файлов с 13 добавлено и 14 удалено
  1. 13 14
      .github/workflows/build.yaml

+ 13 - 14
.github/workflows/build.yaml

@@ -170,9 +170,8 @@ jobs:
     - name: Store generated files in cache
       uses: actions/cache@v3
       with:
-        path: |
-          ./dist
-        key: ${{ steps.vars.outputs.branch }}-pack-for-OTA-v2
+        path: dist
+        key: ${{ github.run_number }}-pack-for-OTA-v2
 
 
 
@@ -225,8 +224,7 @@ jobs:
     - name: Store generated files in cache
       uses: actions/cache@v3
       with:
-        path: |
-          ./firmware
+        path: firmware
         key: ${{ github.run_number }}-pack-for-fresh-install
 
 
@@ -242,6 +240,10 @@ jobs:
       
     steps:
     - uses: actions/checkout@v3
+    - name: Set Variables
+      id: vars
+      run: |
+        echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
 
     - name: Get generated files from cache
       uses: actions/cache@v3
@@ -251,34 +253,31 @@ jobs:
           ./code/.pio/build/esp32cam/partitions.bin
           ./code/.pio/build/esp32cam/bootloader.bin
           ./sd-card/html/version.txt
-        key: ${{ github.run_number }}
+        key: ${{ steps.vars.outputs.branch }}
 
     # import the changes from 
     - name: Get generated files from cache
       uses: actions/cache@v3
       with:
-        path: |
-            ./dist
+        path: dist
         key: ${{ github.run_number }}-pack-for-OTA-v2
 
     # import cached artifacts from pack-for-fresh-install
     - name: Get generated files from cache
       uses: actions/cache@v3
       with:
-        path: |
-          ./firmware
+        path: firmware
         key: ${{ github.run_number }}-pack-for-fresh-install
 
-    - name: Set Variables
-      id: vars
-      run: |
-        echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
 
 
     - name: Prepare artifacts for release
       run: |
         mkdir -p release
+        mkdir -p dist
         # create a update.zip like "update__rolling"
+        pwd
+        ls ./dist
         cd ./dist
         zip -r ../release/update.zip .
         cd ../firmware