-
Notifications
You must be signed in to change notification settings - Fork 13
34 lines (28 loc) · 1.02 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
name: Release
on:
release:
types: [created]
jobs:
bundle:
runs-on: ubuntu-latest
name: Bundle
steps:
- uses: actions/checkout@v4
- 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 konnected-gdov1-s.groovy GarageDoorOpenerGDOv1S/konnected.KonnectedGarageDoorGDOv1S.groovy
wget -O GarageDoorOpenerGDOv1S/esphome.espHomeApiHelper.groovy https://raw.githubusercontent.com/konnected-io/hubitat-public/main/ESPHome/ESPHome-API-Library.groovy
- name: Zip bundles
uses: thedoctor0/[email protected]
with:
type: 'zip'
path: GarageDoorOpenerGDOv1S
filename: GarageDoorOpenerGDOv1S.zip
- name: Upload to Release
uses: Shopify/upload-to-release@v2
with:
name: GarageDoorOpenerGDOv1S.zip
repo-token: ${{ secrets.GITHUB_TOKEN }}