diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 87f22ab3..fa2d2330 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -435,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 @@ -449,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 diff --git a/.github/workflows/manual-update-webinstaller.yaml b/.github/workflows/manual-update-webinstaller.yaml index af707fee..e0f9bc17 100644 --- a/.github/workflows/manual-update-webinstaller.yaml +++ b/.github/workflows/manual-update-webinstaller.yaml @@ -1,4 +1,4 @@ -# This updates the Web Installer with the files from the docs folder and the binary of the latest release +# This updates the Web Installer with the files from the webinstaller folder and the binary of the latest release # it only gets run on: # - Manually triggered # Make sure to also update the lower part of build.yml! @@ -11,7 +11,7 @@ on: # branches: # - rolling # paths: -# - docs # The path filter somehow does not work, so lets run it on every change to rolling +# - webinstaller # The path filter somehow does not work, so lets run it on every change to rolling jobs: manually-update-web-installer: @@ -42,13 +42,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 - wget https://github.com/jomjol/AI-on-the-edge-device/releases/download/${{ steps.last_release.outputs.tag_name }}/AI-on-the-edge-device__update__${{ steps.last_release.outputs.tag_name }}.zip + 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@v5 @@ -56,7 +56,7 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: 'docs' + path: 'webinstaller' - name: Deploy to GitHub Pages id: deployment diff --git a/webinstaller/Readme.md b/webinstaller/Readme.md new file mode 100644 index 00000000..44dc47c1 --- /dev/null +++ b/webinstaller/Readme.md @@ -0,0 +1,3 @@ +# Webinstaller +This folder is used to provide the required files to generate the [Web-Installer](https://jomjol.github.io/AI-on-the-edge-device/). +The Webinstaller gets automatically updated on a release using the Github actions. diff --git a/webinstaller/binary/Readme.md b/webinstaller/binary/Readme.md new file mode 100644 index 00000000..8233a072 --- /dev/null +++ b/webinstaller/binary/Readme.md @@ -0,0 +1,2 @@ +# Binary folder of the webinstaller +The firmware itself (`firmware.bin`) gets copied to this folder through the Github action. diff --git a/docs/binary/bootloader.bin b/webinstaller/binary/bootloader.bin similarity index 100% rename from docs/binary/bootloader.bin rename to webinstaller/binary/bootloader.bin diff --git a/docs/binary/partitions.bin b/webinstaller/binary/partitions.bin similarity index 100% rename from docs/binary/partitions.bin rename to webinstaller/binary/partitions.bin diff --git a/docs/index.html b/webinstaller/index.html similarity index 100% rename from docs/index.html rename to webinstaller/index.html diff --git a/docs/manifest.json b/webinstaller/manifest.json similarity index 100% rename from docs/manifest.json rename to webinstaller/manifest.json