Skip to content

Merge branch 'main' of https://github.com/DanielWinks/Hubitat-Public #68

Merge branch 'main' of https://github.com/DanielWinks/Hubitat-Public

Merge branch 'main' of https://github.com/DanielWinks/Hubitat-Public #68

name: CI
on:
push:
branches: [ "main" ]
paths:
- Libraries/SMAPILibrary.groovy
- Libraries/UtilitiesAndLoggingLibrary.groovy
workflow_dispatch:
jobs:
build:
name: Copy Sonos Advanced Controller Files To Bundle Directory
runs-on: [ubuntu-latest]
permissions:
contents: write
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Make copy of files
run: |
mkdir -p Bundles/SonosAdvancedController
cp Libraries/UtilitiesAndLoggingLibrary.groovy Bundles/SonosAdvancedController/dwinks.UtilitiesAndLoggingLibrary.groovy
cp Libraries/SMAPILibrary.groovy Bundles/SonosAdvancedController/dwinks.SMAPILibrary.groovy
- name: Zip Bundle
uses: thedoctor0/zip-release@0.7.5
with:
type: 'zip'
filename: 'SonosAdvancedController.zip'
directory: 'Bundles/SonosAdvancedController'
- name: Move Bundle to parent directory
run: |
mv Bundles/SonosAdvancedController/SonosAdvancedController.zip Bundles/SonosAdvancedController.zip
- name: Commit changes
uses: EndBug/add-and-commit@v9