Skip to content

Commit

Permalink
feat: HACS installation support (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
gervaso authored Sep 11, 2023
1 parent 3947e00 commit 7e17003
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]

- 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/[email protected]
with:
files: ${{ github.workspace }}/custom_components/econnect_alarm/hacs_econnect_alarm.zip
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).
Expand Down
8 changes: 8 additions & 0 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 7e17003

Please sign in to comment.