diff --git a/.github/FUNDING.yaml b/.github/FUNDING.yaml index c7265aa..e853aee 100644 --- a/.github/FUNDING.yaml +++ b/.github/FUNDING.yaml @@ -1 +1,3 @@ -custom: ['https://mansmarthome.info/donate/'] +custom: + - https://www.donationalerts.com/r/mansmarthome + - https://mansmarthome.info/donate/ diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..0f199a7 --- /dev/null +++ b/.github/workflows/release.yaml @@ -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 diff --git a/custom_components/gsm_call/manifest.json b/custom_components/gsm_call/manifest.json index a465456..71691f1 100644 --- a/custom_components/gsm_call/manifest.json +++ b/custom_components/gsm_call/manifest.json @@ -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"] diff --git a/hacs.json b/hacs.json new file mode 100644 index 0000000..1a39f73 --- /dev/null +++ b/hacs.json @@ -0,0 +1,6 @@ +{ + "name": "GSM Call", + "render_readme": true, + "zip_release": true, + "filename": "gsm_call.zip" +}