-
Notifications
You must be signed in to change notification settings - Fork 13
122 lines (104 loc) · 4.78 KB
/
release.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: Release
on:
release:
types: [created]
jobs:
bundle:
runs-on: ubuntu-latest
name: Bundle
steps:
- uses: actions/checkout@v4
- name: Build ESPHomeApiHelper bundle
run: |
mkdir EspHomeApiHelper
cp bundles/esphome-api-helper.txt EspHomeApiHelper/install.txt
cp bundles/esphome-api-helper.txt EspHomeApiHelper/update.txt
wget -O EspHomeApiHelper/esphome.espHomeApiHelper.groovy https://raw.githubusercontent.com/konnected-io/hubitat-public/refs/heads/main/ESPHome/ESPHome-API-Library.groovy
- name: Build GDOv1-S bundle
run: |
mkdir GarageDoorOpenerGDOv1S
cp bundles/gdov1-s.txt GarageDoorOpenerGDOv1S/install.txt
cp bundles/gdov1-s.txt GarageDoorOpenerGDOv1S/update.txt
cp drivers/konnected-gdov1-s.groovy GarageDoorOpenerGDOv1S/konnected.KonnectedGarageDoorGDOv1S.groovy
wget -O GarageDoorOpenerGDOv1S/esphome.espHomeApiHelper.groovy https://raw.githubusercontent.com/konnected-io/hubitat-public/refs/heads/main/ESPHome/ESPHome-API-Library.groovy
- name: Build GDOv2-S bundle
run: |
mkdir GarageDoorOpenerGDOv2S
cp bundles/gdov2-s.txt GarageDoorOpenerGDOv2S/install.txt
cp bundles/gdov2-s.txt GarageDoorOpenerGDOv2S/update.txt
cp drivers/konnected-gdov2-s.groovy GarageDoorOpenerGDOv2S/konnected.KonnectedGarageDoorGDOv2S.groovy
wget -O GarageDoorOpenerGDOv2S/esphome.espHomeApiHelper.groovy https://raw.githubusercontent.com/konnected-io/hubitat-public/refs/heads/main/ESPHome/ESPHome-API-Library.groovy
- name: Build GDOv2-Q bundle
run: |
mkdir GarageDoorOpenerGDOv2Q
cp bundles/gdov2-q.txt GarageDoorOpenerGDOv2Q/install.txt
cp bundles/gdov2-q.txt GarageDoorOpenerGDOv2Q/update.txt
cp drivers/konnected-gdov2-q.groovy GarageDoorOpenerGDOv2Q/konnected.KonnectedGarageDoorGDOv2Q.groovy
wget -O GarageDoorOpenerGDOv2Q/esphome.espHomeApiHelper.groovy https://raw.githubusercontent.com/konnected-io/hubitat-public/refs/heads/main/ESPHome/ESPHome-API-Library.groovy
- name: Build Alarm Panel bundle
run: |
mkdir AlarmPanel
cp bundles/alarm-panel.txt AlarmPanel/install.txt
cp bundles/alarm-panel.txt AlarmPanel/update.txt
cp drivers/konnected-alarm-panel.groovy AlarmPanel/konnected.KonnectedAlarmPanel.groovy
wget -O AlarmPanel/esphome.espHomeApiHelper.groovy https://raw.githubusercontent.com/konnected-io/hubitat-public/refs/heads/main/ESPHome/ESPHome-API-Library.groovy
- name: Zip EspHomeApiHelper
uses: thedoctor0/[email protected]
with:
type: 'zip'
directory: EspHomeApiHelper
filename: ESPHome-API-Library-Bundle.zip
- name: Zip GDOv1-S
uses: thedoctor0/[email protected]
with:
type: 'zip'
directory: GarageDoorOpenerGDOv1S
filename: GarageDoorOpenerGDOv1S.zip
- name: Zip GDOv2-S
uses: thedoctor0/[email protected]
with:
type: 'zip'
directory: GarageDoorOpenerGDOv2S
filename: GarageDoorOpenerGDOv2S.zip
- name: Zip GDOv2-Q
uses: thedoctor0/[email protected]
with:
type: 'zip'
directory: GarageDoorOpenerGDOv2Q
filename: GarageDoorOpenerGDOv2Q.zip
- name: Zip AlarmPanel
uses: thedoctor0/[email protected]
with:
type: 'zip'
directory: AlarmPanel
filename: AlarmPanel.zip
- name: Upload EspHomeApiHelper
uses: Shopify/[email protected]
with:
name: ESPHome-API-Library-Bundle.zip
path: EspHomeApiHelper/ESPHome-API-Library-Bundle.zip
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload GDOv1-S
uses: Shopify/[email protected]
with:
name: GarageDoorOpenerGDOv1S.zip
path: GarageDoorOpenerGDOv1S/GarageDoorOpenerGDOv1S.zip
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload GDOv2-S
uses: Shopify/[email protected]
with:
name: GarageDoorOpenerGDOv2S.zip
path: GarageDoorOpenerGDOv2S/GarageDoorOpenerGDOv2S.zip
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload GDOv2-Q
uses: Shopify/[email protected]
with:
name: GarageDoorOpenerGDOv2Q.zip
path: GarageDoorOpenerGDOv2Q/GarageDoorOpenerGDOv2Q.zip
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Alarm Panel
uses: Shopify/[email protected]
with:
name: AlarmPanel.zip
path: AlarmPanel/AlarmPanel.zip
repo-token: ${{ secrets.GITHUB_TOKEN }}