Skip to content

Commit 8494f36

Browse files
authored
Rename webinstaller folder and add readme's (#3637)
1 parent 3e67aee commit 8494f36

File tree

8 files changed

+18
-13
lines changed

8 files changed

+18
-13
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -435,21 +435,21 @@ jobs:
435435
- name: Add binary to Web Installer and update manifest
436436
run: |
437437
echo "Updating Web installer to use firmware from ${{ steps.last_release.outputs.tag_name }}..."
438-
rm -f docs/binary/firmware.bin
438+
rm -f webinstaller/binary/firmware.bin
439439
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
440440
unzip AI-on-the-edge-device__update__${{ steps.last_release.outputs.tag_name }}.zip
441-
cp -f firmware.bin docs/binary/firmware.bin
441+
cp -f firmware.bin webinstaller/binary/firmware.bin
442442
echo "Updating index and manifest file..."
443-
sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' docs/index.html
444-
sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' docs/manifest.json
443+
sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' webinstaller/index.html
444+
sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' webinstaller/manifest.json
445445
446446
- name: Setup Pages
447447
uses: actions/configure-pages@v4
448448

449449
- name: Upload artifact
450450
uses: actions/upload-pages-artifact@v2
451451
with:
452-
path: 'docs'
452+
path: 'webinstaller'
453453

454454
- name: Deploy to GitHub Pages
455455
id: deployment

.github/workflows/manual-update-webinstaller.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22
# it only gets run on:
33
# - Manually triggered
44
# Make sure to also update the lower part of build.yml!
@@ -11,7 +11,7 @@ on:
1111
# branches:
1212
# - rolling
1313
# 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
1515

1616
jobs:
1717
manually-update-web-installer:
@@ -42,21 +42,21 @@ jobs:
4242
- name: Add binary to Web Installer and update manifest
4343
run: |
4444
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
4747
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
4949
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
5252
5353
- name: Setup Pages
5454
uses: actions/configure-pages@v5
5555

5656
- name: Upload artifact
5757
uses: actions/upload-pages-artifact@v3
5858
with:
59-
path: 'docs'
59+
path: 'webinstaller'
6060

6161
- name: Deploy to GitHub Pages
6262
id: deployment

webinstaller/Readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Webinstaller
2+
This folder is used to provide the required files to generate the [Web-Installer](https://jomjol.github.io/AI-on-the-edge-device/).
3+
The Webinstaller gets automatically updated on a release using the Github actions.

webinstaller/binary/Readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Binary folder of the webinstaller
2+
The firmware itself (`firmware.bin`) gets copied to this folder through the Github action.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)