prebuilt action

This commit is contained in:
Edward Firmo
2024-02-19 10:56:24 +01:00
parent 61516584c8
commit e09a57688b
5 changed files with 37 additions and 3 deletions

View File

@@ -179,4 +179,33 @@ jobs:
uses: barndawgie/build-action@v1.9.0 uses: barndawgie/build-action@v1.9.0
with: with:
yaml_file: "./.test/esphome_advanced_climate_heat_customizations.yaml" 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 }}
... ...

2
.gitignore vendored
View File

@@ -11,5 +11,3 @@ Nextion2Text.*
# Ignore dev folder # Ignore dev folder
#dev #dev
nspanel_esphome_prebuilt*.bin

1
prebuilt/.gitignore vendored
View File

@@ -3,4 +3,3 @@
# You can modify this file to suit your needs. # You can modify this file to suit your needs.
/.esphome/ /.esphome/
/secrets.yaml /secrets.yaml
*.bin

4
prebuilt/EXPERIMENTAL.md Normal file
View File

@@ -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.

4
prebuilt/README.md Normal file
View File

@@ -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.