Skip to content

Commit

Permalink
Add HACS manifest and set up the release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
black-roland committed Nov 2, 2024
1 parent 19c4d8b commit af38dbd
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/FUNDING.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
custom: ['https://mansmarthome.info/donate/']
custom:
- https://www.donationalerts.com/r/mansmarthome
- https://mansmarthome.info/donate/
36 changes: 36 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Release"

on:
push:
tags:
- "v*.*.*"

jobs:
release:
name: "Release"
runs-on: "ubuntu-latest"
permissions:
contents: write
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Verify the release version"
uses: technote-space/package-version-check-action@v1
with:
COMMIT_DISABLED: true
PACKAGE_DIR: ${{ github.workspace }}/custom_components/gsm_call
PACKAGE_NAME: manifest.json
- name: "Compress"
shell: "bash"
run: |
cd "${{ github.workspace }}/custom_components/gsm_call"
zip -r "${{ runner.temp }}/gsm_call.zip" ./
- name: "Publish"
uses: softprops/action-gh-release@v2
with:
draft: true
files: ${{ runner.temp }}/gsm_call.zip
body: >
[![Downloads](https://img.shields.io/github/downloads/black-roland/homeassistant-gsm-call/${{ github.ref_name }}/total?style=flat-square)](https://github.com/black-roland/homeassistant-gsm-call/releases)
[![Buy me a coffee](https://img.shields.io/badge/buy%20me%20a%20coffee-cc3336?style=flat-square&logo=coffeescript)](https://www.donationalerts.com/r/mansmarthome)
generate_release_notes: true
5 changes: 3 additions & 2 deletions custom_components/gsm_call/manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"domain": "gsm_call",
"name": "Voice calls using GSM-modem",
"version": "0.1.2",
"version": "0.1.4",
"codeowners": ["@black-roland"],
"dependencies": [],
"documentation": "",
"documentation": "https://github.com/black-roland/homeassistant-gsm-call#readme",
"issue_tracker": "https://github.com/black-roland/homeassistant-gsm-call/issues",
"iot_class": "local_polling",
"loggers": ["gsm_call"],
"requirements": ["pyserial"]
Expand Down
6 changes: 6 additions & 0 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "GSM Call",
"render_readme": true,
"zip_release": true,
"filename": "gsm_call.zip"
}

0 comments on commit af38dbd

Please sign in to comment.