Version 1.2.0 #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Stock Firmware | |
on: | |
release: | |
types: [created] | |
jobs: | |
build: | |
name: Build Firmware | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.9" | |
- name: Install ESPHome | |
run: pip install --user esphome | |
- name: Compile Release Firmware | |
working-directory: firmware | |
run: | | |
esphome compile stock.yaml | |
mkdir -p bin | |
cp .esphome/build/upsy-desky/.pioenvs/upsy-desky/firmware-factory.bin bin/firmware-factory.bin | |
cp .esphome/build/upsy-desky/.pioenvs/upsy-desky/firmware.bin bin/firmware.bin | |
- name: Compile Debug Firmware | |
working-directory: firmware | |
run: | | |
rm -rf .esphome/build/upsy-desky | |
esphome compile debug.yaml | |
mkdir -p bin | |
cp .esphome/build/upsy-desky/.pioenvs/upsy-desky/firmware-factory.bin bin/debug-firmware-factory.bin | |
cp .esphome/build/upsy-desky/.pioenvs/upsy-desky/firmware.bin bin/debug-firmware.bin | |
- name: Upload Firmware | |
uses: skx/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
args: "firmware/bin/*.bin" |