diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index f667b8d..a6e2ffd 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -1,6 +1,9 @@ name: BTClock CI -on: [push] +on: + push: + tags: + - '*' jobs: build: @@ -24,20 +27,24 @@ jobs: - uses: actions/setup-python@v4 with: python-version: '3.9' + - name: Get current date + id: dateAndTime + # run: echo "::set-output name=dateAndTime::$(date +'%Y-%m-%d-%H:%M')" + run: echo "dateAndTime=$(date +'%Y-%m-%d-%H:%M')" >> $GITHUB_OUTPUT - name: Install PlatformIO Core run: pip install --upgrade platformio - name: Build BTClock firmware - run: pio run -e esp32wemos-s3-mini_BW + run: pio run -e default - name: Build BTClock filesystem - run: pio run -e esp32wemos-s3-mini_BW --target buildfs + run: pio run -e default --target buildfs - name: Install esptools.py run: pip install --upgrade esptool - name: Create merged firmware binary - run: mkdir -p output && esptool.py --chip esp32s3 merge_bin -o output/full-firmware.bin --flash_mode dio 0x0000 .pio/build/esp32wemos-s3-mini_BW/bootloader.bin 0x8000 .pio/build/esp32wemos-s3-mini_BW/partitions.bin 0xe000 ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin 0x10000 .pio/build/esp32wemos-s3-mini_BW/firmware.bin 0x330000 .pio/build/esp32wemos-s3-mini_BW/spiffs.bin + run: mkdir -p output && esptool.py --chip esp32s3 merge_bin -o output/full-firmware.bin --flash_mode dio 0x0000 .pio/build/default/bootloader.bin 0x8000 .pio/build/default/partitions.bin 0xe000 ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin 0x10000 .pio/build/default/firmware.bin 0x330000 .pio/build/default/spiffs.bin - name: Create checksum for merged binary run: shasum -a 256 output/full-firmware.bin | awk '{print $1}' > output/full-firmware.sha256 @@ -52,16 +59,14 @@ jobs: uses: actions/upload-artifact@v3 with: path: | - .pio/build/esp32wemos-s3-mini_BW/*.bin + .pio/build/default/*.bin output/full-firmware.bin output/full-firmware.sha256 - - name: Create release uses: ncipollo/release-action@v1 with: - tag: main - commit: main - artifacts: "output/full-firmware.bin,output/full-firmware.sha256,.pio/build/esp32wemos-s3-mini_BW/*.bin" + name: release-${{ steps.dateAndTime.outputs.dateAndTime }} + artifacts: "output/full-firmware.bin,output/full-firmware.sha256,.pio/build/default/*.bin" allowUpdates: true removeArtifacts: true - name: Pushes full-firmware.bin to web flasher diff --git a/data/src/css/style.scss b/data/src/css/style.scss index 1de809d..fe56410 100644 --- a/data/src/css/style.scss +++ b/data/src/css/style.scss @@ -20,6 +20,7 @@ $form-range-track-bg: #fff; @import "../node_modules/bootstrap/scss/navbar"; @import "../node_modules/bootstrap/scss/nav"; @import "../node_modules/bootstrap/scss/card"; +@import "../node_modules/bootstrap/scss/progress"; @import "../node_modules/bootstrap/scss/helpers"; @import "../node_modules/bootstrap/scss/utilities/api"; diff --git a/data/src/index.html b/data/src/index.html index 2d8f163..0c8b980 100644 --- a/data/src/index.html +++ b/data/src/index.html @@ -57,6 +57,20 @@

+
+
+
+
{{ memUsage }}%
+
+
+
Memory free
+
{{ memFree }} / {{ memTotal }} KiB
+
+
+
+
+

Uptime: {{#if uptime.h }}{{ uptime.h }}h {{/if}}{{ uptime.m }}m {{ uptime.s }}s

+
@@ -177,6 +191,13 @@ +
+ +
+ +
A restart is required to apply new hostname prefix.
+
+
@@ -213,7 +234,7 @@