From 57e346a3c991b2303078e7a14abf0a30042352af Mon Sep 17 00:00:00 2001 From: Ivan Zorin Date: Wed, 20 Dec 2023 05:25:54 +0300 Subject: [PATCH] push.yml: add every json to every model of artifact --- .github/workflows/push.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 9f28bdb3..775e2673 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -37,6 +37,9 @@ jobs: - name: Copy license files run: cp LICENSE scripts/LICENSE_RELEASE.md source/Hexfile/ + - name: Generate json index file + run: ./source/metadata.py ${{ matrix.model }}.json + - name: Archive ${{ matrix.model }} artifacts uses: actions/upload-artifact@v4 with: @@ -45,13 +48,11 @@ jobs: source/Hexfile/${{ matrix.model }}_*.hex source/Hexfile/${{ matrix.model }}_*.dfu source/Hexfile/${{ matrix.model }}_*.bin + source/Hexfile/${{ matrix.model }}.json source/Hexfile/LICENSE source/Hexfile/LICENSE_RELEASE.md if-no-files-found: error - - name: Generate json index file - run: ./source/metadata.py ${{ matrix.model }}.json - - name: Archive ${{ matrix.model }} index file uses: actions/upload-artifact@v4 with: @@ -92,6 +93,9 @@ jobs: - name: Copy license files run: cp LICENSE scripts/LICENSE_RELEASE.md source/Hexfile/ + - name: Generate json index file + run: ./source/metadata.py ${{ matrix.model }}_multi-lang.json + - name: Archive ${{ matrix.model }} artifacts uses: actions/upload-artifact@v4 with: @@ -100,13 +104,11 @@ jobs: source/Hexfile/${{ matrix.model }}_*.hex source/Hexfile/${{ matrix.model }}_*.dfu source/Hexfile/${{ matrix.model }}_*.bin + source/Hexfile/${{ matrix.model }}_multi-lang.json source/Hexfile/LICENSE source/Hexfile/LICENSE_RELEASE.md if-no-files-found: error - - name: Generate json index file - run: ./source/metadata.py ${{ matrix.model }}_multi-lang.json - - name: Archive ${{ matrix.model }} index file uses: actions/upload-artifact@v4 with: