From 457792d20b4e9eb6b1fbe74e0f14f55da4819440 Mon Sep 17 00:00:00 2001 From: lumapu Date: Thu, 7 Jul 2022 07:58:15 +0200 Subject: [PATCH] * added convert html files to workflow --- .github/workflows/compile_esp8266.yml | 6 +++++- tools/esp8266/helpers/getVersion.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile_esp8266.yml b/.github/workflows/compile_esp8266.yml index 059d866b..701015a5 100644 --- a/.github/workflows/compile_esp8266.yml +++ b/.github/workflows/compile_esp8266.yml @@ -31,10 +31,14 @@ jobs: run: | python -m pip install --upgrade pip pip install --upgrade platformio + - name: Update html + working-directory: tools/esp8266/html + run: python convert.py - name: Run PlatformIO run: pio run -d tools/esp8266 - name: rename - run: python tools/esp8266/helpers/getVersion.py + working-directory: tools/esp8266/helpers + run: python getVersion.py - uses: actions/upload-artifact@v3 with: name: esp8266 diff --git a/tools/esp8266/helpers/getVersion.py b/tools/esp8266/helpers/getVersion.py index 64a7162e..3b4a9145 100644 --- a/tools/esp8266/helpers/getVersion.py +++ b/tools/esp8266/helpers/getVersion.py @@ -22,4 +22,4 @@ def readVersion(path, infile): os.mkdir(path + ".pio/build/d1_mini/out/") os.rename(src, dst) -readVersion("tools/esp8266/", "defines.h") +readVersion("../", "defines.h")