prebuilt action
This commit is contained in:
29
.github/workflows/validate_esphome.yml
vendored
29
.github/workflows/validate_esphome.yml
vendored
@@ -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 }}
|
||||
...
|
||||
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -11,5 +11,3 @@ Nextion2Text.*
|
||||
|
||||
# Ignore dev folder
|
||||
#dev
|
||||
|
||||
nspanel_esphome_prebuilt*.bin
|
||||
|
||||
1
prebuilt/.gitignore
vendored
1
prebuilt/.gitignore
vendored
@@ -3,4 +3,3 @@
|
||||
# You can modify this file to suit your needs.
|
||||
/.esphome/
|
||||
/secrets.yaml
|
||||
*.bin
|
||||
|
||||
4
prebuilt/EXPERIMENTAL.md
Normal file
4
prebuilt/EXPERIMENTAL.md
Normal 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
4
prebuilt/README.md
Normal 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.
|
||||
|
||||
Reference in New Issue
Block a user