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