fix: regenerate web flasher manifest with release assets

Generate webflasher.json from the build matrix and matching factory/filesystem artifacts before replacing release assets. Use environment IDs as board names and the fixed filesystem address 0x370000.

Reject incomplete or ambiguous artifact sets and replace the manifest alongside firmware assets. Validated with 11 local checks across all 9 environments, including prefix overlaps, added/removed targets, version mismatches, and workflow wiring.
This commit is contained in:
Yurii committed 2026-11-24 05:54:25 +03:00
1 parent fc80e0cd8f
commit 25fd973326
2 files changed
+65 -1

No files matched your search

+8 -1
View File
@@ -121,7 +121,7 @@ jobs:
release:
name: Release Dev
runs-on: ubuntu-latest
needs: build
needs: [prepare, build]
permissions:
contents: write
if: ${{ github.repository_owner == 'Laxilef' && github.ref == 'refs/heads/dev' }}
@@ -144,6 +144,11 @@ jobs:
path: artifacts
merge-multiple: true
- name: Generate Web Flasher manifest
env:
ENVS: ${{ needs.prepare.outputs.envs }}
run: python3 tools/generate_webflasher.py --envs "$ENVS"
- name: Delete old release assets
uses: mknejp/delete-release-assets@v1
with:
@@ -154,6 +159,7 @@ jobs:
assets: |
*.bin
*.elf
webflasher.json
- name: Clear release body
env:
@@ -173,3 +179,4 @@ jobs:
files: |
artifacts/*.bin
artifacts/*.elf
artifacts/webflasher.json