Skip to content

Commit

Permalink
Copy manifests to root and modify
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz committed Sep 15, 2024
1 parent 046cbb0 commit a1932e0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ jobs:
mkdir output
cp -R static/* output/
cp -R firmwares/* output/
- name: Copy manifest files to root and modify paths # This is required so that older firmwares can update to newer firmwares with new manifest paths
run: |-
for device in firmwares/*; do
jq --arg device "$device" \
'.builds[].ota.path |= $device + "/" + . | (.builds[].parts // [])[].path |= $device + "/" + .' \
firmwares/$device/manifest.json > output/$device-manifest.json
done
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3.0.1
with:
Expand Down

0 comments on commit a1932e0

Please sign in to comment.