-
-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (37 loc) · 1.18 KB
/
esphome_build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: ESPHome Build
on:
push:
branches:
- main
paths:
- 'config/**' # Trigger only if there are changes in config folder or its subfolders
pull_request:
branches:
- main
paths:
- 'config/**' # Trigger only if there are changes in config folder or its subfolders
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build ESPHOME
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Move Secrets Template
run: |
cp config/secrets.yaml.template config/secrets.yaml
sed -i 's/YOUR_ESPHOME_API_KEY/2EhugO+jJDJ+BiVEiRxzXnkDWTmxpdfvgdMXRv26\/pA=/' config/secrets.yaml
sed -i 's/YOUR_NEXXTENDER_MAC_ADDRESS/00:1A:7D:DA:71:13/' config/secrets.yaml
sed -i 's/YOUR_NEXXTENDER_PASSKEY/123456/' config/secrets.yaml
echo "Secrets template moved."
working-directory: ${{ github.workspace }}
- name: Build ESPHOME
uses: esphome/build-action@v1
with:
yaml_file: config/nexxtender.yaml