diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..d26a8f6 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,30 @@ +name: 'Publish' + +on: + release: + types: + - published + +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + +jobs: + release_zip_file: + name: Publish integration zip file asset + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout the repository + uses: actions/checkout@v3.5.3 + + - name: Build Integration ZIP package + run: | + cd ${{ github.workspace }}/custom_components/econnect_alarm + zip hacs_econnect_alarm.zip -r ./ + + - name: Upload ZIP package release + uses: softprops/action-gh-release@v0.1.15 + with: + files: ${{ github.workspace }}/custom_components/econnect_alarm/hacs_econnect_alarm.zip diff --git a/README.md b/README.md index 10e1cdf..9fe76d9 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,9 @@ [![Linting](https://github.com/palazzem/ha-econnect-alarm/actions/workflows/linting.yaml/badge.svg)](https://github.com/palazzem/ha-econnect-alarm/actions/workflows/linting.yaml) [![Testing](https://github.com/palazzem/ha-econnect-alarm/actions/workflows/testing.yaml/badge.svg)](https://github.com/palazzem/ha-econnect-alarm/actions/workflows/testing.yaml) [![Coverage Status](https://coveralls.io/repos/github/palazzem/ha-econnect-alarm/badge.svg?branch=main)](https://coveralls.io/github/palazzem/ha-econnect-alarm?branch=main) +[![hacs_badge](https://img.shields.io/badge/HACS-Custom-41BDF5.svg)](https://github.com/palazzem/ha-econnect-alarm) + + This project is a [Home Assistant](https://www.home-assistant.io/) integration for your Elmo-like Alarm connected to [e-Connect cloud](https://e-connect.elmospa.com/it/). diff --git a/hacs.json b/hacs.json new file mode 100644 index 0000000..45c2235 --- /dev/null +++ b/hacs.json @@ -0,0 +1,8 @@ +{ + "name": "Home Assistant e-Connect Integration (Elmo)", + "content_in_root": false, + "render_readme": true, + "hide_default_branch": true, + "zip_release": true, + "filename": "hacs_econnect_alarm.zip" + }