Skip to content

Commit

Permalink
Add build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
abichinger committed Feb 8, 2024
1 parent 79c6b68 commit d9e951d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
wifi_ssid_1: "ssid-1"
wifi_password_1: "12345678"
wifi_ssid_2: "ssid-2"
wifi_password_2: "12345678"
wifi_ssid_3: "ssid-3"
wifi_password_3: "12345678"
fallback_hotspot_password: "canbus-fallback"
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install ESPHome
run: |
python3 -m venv venv
source venv/bin/activate
pip3 install wheel esphome
- name: Setup secrets.yaml
run: cat .github/secrets.yaml > esphome/secrets.yaml
- name: Build firmware
run: venv/bin/esphome compile esphome/config.yaml

0 comments on commit d9e951d

Please sign in to comment.