diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..4ebb889 --- /dev/null +++ b/.github/workflows/release.yml @@ -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/zip-release@0.7.6 + with: + type: 'zip' + path: GarageDoorOpenerGDOv1S + filename: GarageDoorOpenerGDOv1S.zip + + - name: Upload to Release + uses: Shopify/upload-to-release@v2.0.0 + with: + name: GarageDoorOpenerGDOv1S.zip + repo-token: ${{ secrets.GITHUB_TOKEN }} + \ No newline at end of file diff --git a/bundles/gdov1-s.txt b/bundles/gdov1-s.txt new file mode 100644 index 0000000..414ff11 --- /dev/null +++ b/bundles/gdov1-s.txt @@ -0,0 +1,4 @@ +konnected +Garage Door Opener GDOv1-S +library esphome.espHomeApiHelper.groovy +driver konnected.KonnectedGarageDoorGDOv1S.groovy \ No newline at end of file diff --git a/drivers/konnected-gdov1-s.groovy b/drivers/konnected-gdov1-s.groovy index 6c55f60..14f78bf 100644 --- a/drivers/konnected-gdov1-s.groovy +++ b/drivers/konnected-gdov1-s.groovy @@ -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') {