Skip to content

Commit

Permalink
add release script to build bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
heythisisnate committed Nov 22, 2023
1 parent 3a87371 commit fe14298
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 }}

4 changes: 4 additions & 0 deletions bundles/gdov1-s.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
konnected
Garage Door Opener GDOv1-S
library esphome.espHomeApiHelper.groovy
driver konnected.KonnectedGarageDoorGDOv1S.groovy
4 changes: 2 additions & 2 deletions drivers/konnected-gdov1-s.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
*/
metadata {
definition(
name: 'Konnected Garage Door',
name: 'Konnected Garage Door GDOv1-S',
namespace: 'konnected',
author: 'Konnected Inc',
author: 'Konnected Inc.',
singleThreaded: true,
importUrl: 'https://github.com/konnected-io/konnected-hubitat/blob/master/drivers/konnected-gdov1-s.groovy') {

Expand Down

0 comments on commit fe14298

Please sign in to comment.