|
1 | | -# This updates the Web Installer with the files from the docs folder and the binary of the latest release |
| 1 | +# This updates the Web Installer with the files from the webinstaller folder and the binary of the latest release |
2 | 2 | # it only gets run on: |
3 | 3 | # - Manually triggered |
4 | 4 | # Make sure to also update the lower part of build.yml! |
|
11 | 11 | # branches: |
12 | 12 | # - rolling |
13 | 13 | # paths: |
14 | | -# - docs # The path filter somehow does not work, so lets run it on every change to rolling |
| 14 | +# - webinstaller # The path filter somehow does not work, so lets run it on every change to rolling |
15 | 15 |
|
16 | 16 | jobs: |
17 | 17 | manually-update-web-installer: |
@@ -42,21 +42,21 @@ jobs: |
42 | 42 | - name: Add binary to Web Installer and update manifest |
43 | 43 | run: | |
44 | 44 | echo "Updating Web installer to use firmware from ${{ steps.last_release.outputs.tag_name }}..." |
45 | | - rm -f docs/binary/firmware.bin |
46 | | - 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 |
| 45 | + rm -f webinstaller/binary/firmware.bin |
| 46 | + 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 |
47 | 47 | unzip AI-on-the-edge-device__update__${{ steps.last_release.outputs.tag_name }}.zip |
48 | | - cp -f firmware.bin docs/binary/firmware.bin |
| 48 | + cp -f firmware.bin webinstaller/binary/firmware.bin |
49 | 49 | echo "Updating index and manifest file..." |
50 | | - sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' docs/index.html |
51 | | - sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' docs/manifest.json |
| 50 | + sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' webinstaller/index.html |
| 51 | + sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' webinstaller/manifest.json |
52 | 52 |
|
53 | 53 | - name: Setup Pages |
54 | 54 | uses: actions/configure-pages@v5 |
55 | 55 |
|
56 | 56 | - name: Upload artifact |
57 | 57 | uses: actions/upload-pages-artifact@v3 |
58 | 58 | with: |
59 | | - path: 'docs' |
| 59 | + path: 'webinstaller' |
60 | 60 |
|
61 | 61 | - name: Deploy to GitHub Pages |
62 | 62 | id: deployment |
|
0 commit comments