Skip to content

Commit e334e70

Browse files
committed
Add nightly build to ensure it always works with latest ESPHome
1 parent c36fcb5 commit e334e70

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ labels: ["bug"]
44
assignees:
55
- tjhorner
66
body:
7+
- type: checkboxes
8+
id: troubleshooting-followed
9+
attributes:
10+
label: Troubleshooting Guide
11+
description: Please confirm you have followed the [troubleshooting guide](https://upsy-desky.tjhorner.dev/docs/troubleshooting).
12+
options:
13+
- label: I have followed the steps in the troubleshooting guide and my issue is either not listed or is not solved.
14+
required: true
715
- type: textarea
816
id: description
917
attributes:
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Nightly Stock Firmware Build
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
6+
jobs:
7+
build:
8+
name: Build Firmware
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- uses: actions/setup-python@v2
14+
with:
15+
python-version: "3.9"
16+
17+
- name: Install ESPHome
18+
run: pip install --user esphome
19+
20+
- name: Compile Release Firmware
21+
working-directory: firmware
22+
run: |
23+
esphome compile stock.yaml
24+
mkdir -p bin
25+
cp .esphome/build/upsy-desky/.pioenvs/upsy-desky/firmware-factory.bin bin/firmware-factory.bin
26+
cp .esphome/build/upsy-desky/.pioenvs/upsy-desky/firmware.bin bin/firmware.bin
27+
28+
- uses: actions/upload-artifact@v3
29+
with:
30+
name: firmware-bin
31+
path: firmware/bin
32+
33+
- name: Send Discord failure notification
34+
if: failure()
35+
uses: appleboy/discord-action@master
36+
with:
37+
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
38+
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
39+
color: "#FF6961"
40+
message: "The latest nightly build failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"

0 commit comments

Comments
 (0)