|
|
@@ -84,7 +84,8 @@ jobs:
|
|
|
cd ../..
|
|
|
|
|
|
cp -r ./sd-card/html/* ./html/
|
|
|
-
|
|
|
+ rm -f ./html/edit_config_template.html # Remove the config page template, it is no longer needed
|
|
|
+
|
|
|
echo "Replacing variables..."
|
|
|
cd html
|
|
|
find . -type f -exec sed -i 's/$COMMIT_HASH/${{ steps.vars.outputs.sha_short }}/g' {} \;
|
|
|
@@ -285,8 +286,9 @@ jobs:
|
|
|
rm -rf ./sd-card/html
|
|
|
rm -rf ./sd-card/demo
|
|
|
cp -r ./html ./sd-card/ # Overwrite the Web UI with the preprocessed files
|
|
|
+ rm -f ./sd-card/Readme.md
|
|
|
cp -r ./demo ./sd-card/
|
|
|
- cd sd-card; zip -r ../manual_setup/sd-card.zip *; cd ..
|
|
|
+ cd sd-card; rm -rf html/param-tooltips; zip -r ../manual_setup/sd-card.zip *; cd ..
|
|
|
cd ./manual_setup
|
|
|
|
|
|
- name: Upload manual_setup.zip artifact (Firmware + Bootloader + Partitions + Web UI)
|
|
|
@@ -433,13 +435,13 @@ jobs:
|
|
|
- name: Add binary to Web Installer and update manifest
|
|
|
run: |
|
|
|
echo "Updating Web installer to use firmware from ${{ steps.last_release.outputs.tag_name }}..."
|
|
|
- rm -f docs/binary/firmware.bin
|
|
|
+ rm -f webinstaller/binary/firmware.bin
|
|
|
wget ${{ github.server_url }}/${{ github.repository }}/releases/download/${{ steps.last_release.outputs.tag_name }}/AI-on-the-edge-device__update__${{ steps.last_release.outputs.tag_name }}.zip
|
|
|
unzip AI-on-the-edge-device__update__${{ steps.last_release.outputs.tag_name }}.zip
|
|
|
- cp -f firmware.bin docs/binary/firmware.bin
|
|
|
+ cp -f firmware.bin webinstaller/binary/firmware.bin
|
|
|
echo "Updating index and manifest file..."
|
|
|
- sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' docs/index.html
|
|
|
- sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' docs/manifest.json
|
|
|
+ sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' webinstaller/index.html
|
|
|
+ sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' webinstaller/manifest.json
|
|
|
|
|
|
- name: Setup Pages
|
|
|
uses: actions/configure-pages@v4
|
|
|
@@ -447,7 +449,7 @@ jobs:
|
|
|
- name: Upload artifact
|
|
|
uses: actions/upload-pages-artifact@v2
|
|
|
with:
|
|
|
- path: 'docs'
|
|
|
+ path: 'webinstaller'
|
|
|
|
|
|
- name: Deploy to GitHub Pages
|
|
|
id: deployment
|