From e09a57688b86578c88f6c54fa11151900027a942 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Mon, 19 Feb 2024 10:56:24 +0100 Subject: [PATCH] prebuilt action --- .github/workflows/validate_esphome.yml | 29 ++++++++++++++++++++++++++ .gitignore | 2 -- prebuilt/.gitignore | 1 - prebuilt/EXPERIMENTAL.md | 4 ++++ prebuilt/README.md | 4 ++++ 5 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 prebuilt/EXPERIMENTAL.md create mode 100644 prebuilt/README.md diff --git a/.github/workflows/validate_esphome.yml b/.github/workflows/validate_esphome.yml index 761cc59..4582925 100644 --- a/.github/workflows/validate_esphome.yml +++ b/.github/workflows/validate_esphome.yml @@ -179,4 +179,33 @@ jobs: uses: barndawgie/build-action@v1.9.0 with: yaml_file: "./.test/esphome_advanced_climate_heat_customizations.yaml" + + build_prebuilt_firmware: + name: Prebuilt Firmware + runs-on: ubuntu-latest + needs: build_core # Ensure this job runs after the core build job + steps: + - uses: actions/checkout@v4.1.0 + with: + fetch-depth: '0' + + - name: Build ESPHome Prebuilt Firmware + uses: barndawgie/build-action@v1.9.0 + with: + yaml_file: prebuilt/nspanel_esphome_prebuilt.yaml + version: latest + + - name: Move and Rename Firmware File + run: | + mv *.bin prebuilt/ + + - name: Commit and Push Firmware File + run: | + git config --global user.name 'GitHub Actions' + git config --global user.email 'actions@github.com' + git add prebuilt/*.bin + git commit -m "Automatically update ESPHome firmware for NSPanel" + git push + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ... diff --git a/.gitignore b/.gitignore index ae2f781..4dd470c 100644 --- a/.gitignore +++ b/.gitignore @@ -11,5 +11,3 @@ Nextion2Text.* # Ignore dev folder #dev - -nspanel_esphome_prebuilt*.bin diff --git a/prebuilt/.gitignore b/prebuilt/.gitignore index 3a5e9d2..d8b4157 100644 --- a/prebuilt/.gitignore +++ b/prebuilt/.gitignore @@ -3,4 +3,3 @@ # You can modify this file to suit your needs. /.esphome/ /secrets.yaml -*.bin diff --git a/prebuilt/EXPERIMENTAL.md b/prebuilt/EXPERIMENTAL.md new file mode 100644 index 0000000..c7332b3 --- /dev/null +++ b/prebuilt/EXPERIMENTAL.md @@ -0,0 +1,4 @@ +# THIS IS EXPERIMENTAL +## This is not tested +### Be prepared to have to flash your panel via serial if you wanna play with this. + \ No newline at end of file diff --git a/prebuilt/README.md b/prebuilt/README.md new file mode 100644 index 0000000..c7332b3 --- /dev/null +++ b/prebuilt/README.md @@ -0,0 +1,4 @@ +# THIS IS EXPERIMENTAL +## This is not tested +### Be prepared to have to flash your panel via serial if you wanna play with this. + \ No newline at end of file