diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a8e273fe..0a435373 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,9 +1,15 @@ name: Build branch on: + release: + types: [created] push: + branches: + - main paths-ignore: - '**.md' + - '**.yml' + - '**.yaml' workflow_dispatch: jobs: @@ -87,6 +93,18 @@ jobs: with: name: ${{ matrix.environment.out }} path: build_output/firmware/*.bin + - name: Create release and upload firmware + if: github.ref != 'refs/heads/master' + run: | + set -x + assets=() + for asset in build_output/firmware/*.bin; do + assets+=("-a" "$asset") + done + tag_name="${GITHUB_REF##*/}" + hub release edit "${assets[@]}" -m "$tag_name" "$tag_name" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} #- name: Create release and upload firmware # run: | # set -x diff --git a/CHANGLELOG.md b/CHANGLELOG.md index 283e2db0..d9632a76 100644 --- a/CHANGLELOG.md +++ b/CHANGLELOG.md @@ -75,7 +75,7 @@ - Add support for ESP32-S2 devices - ⚠️ **Breaking:** Removed support for ESP8266! -Updated libraries to ArduinoJson 6.19.4, ArduinoStreamUtils 1.6.2, AceButton 1.9.2, TFT_eSPI 2.4.61, LovyanGFX 0.4.17 and Adafruit STMPE610 1.1.4 +Updated libraries to ArduinoJson 6.19.4, ArduinoStreamUtils 1.6.3, AceButton 1.9.2, TFT_eSPI 2.4.61, LovyanGFX 0.4.17 and Adafruit STMPE610 1.1.4 diff --git a/platformio.ini b/platformio.ini index d7d936ed..98872bc7 100644 --- a/platformio.ini +++ b/platformio.ini @@ -66,8 +66,9 @@ build_flags = ; -- Hasp build options ---------------------------- -D HASP_VER_MAJ=0 -D HASP_VER_MIN=6 - ;-D HASP_VER_REV=3 - -D HASP_VER_REV=3-rc3 + -D HASP_VER_REV=3 + ;-D HASP_VER_REV=4-dev + ;-D HASP_VER_REV=4-rc1 ${override.build_flags} ; -- Shared library dependencies in all environments @@ -75,7 +76,7 @@ build_flags = lib_deps = bxparks/AceButton@^1.9.2 ; GPIO button library bblanchon/ArduinoJson@^6.19.4 ; Json(l) parser - bblanchon/StreamUtils@^1.6.2 ; for EEPromStream and BufferedTelnetClient + bblanchon/StreamUtils@^1.6.3 ; for EEPromStream and BufferedTelnetClient knolleary/PubSubClient@^2.8.0 ; MQTT client ;git+https://github.com/fvanroie/ConsoleInput.git ;git+https://github.com/andrethomas/TasmotaSlave.git