From 4e684ba74b7ee0ab9ea46f047466585a65dd519a Mon Sep 17 00:00:00 2001 From: Tim Soethout Date: Thu, 31 Oct 2024 15:51:02 +0100 Subject: [PATCH] Download counters (#117) * Create release.yaml * Update hacs.json * v6.1.1 --- .github/workflows/release.yaml | 29 ++++++++++++++++++++++++++++ custom_components/sems/manifest.json | 2 +- hacs.json | 2 ++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..61f9c87 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,29 @@ +name: "Release" + +on: + release: + types: + - "published" + +permissions: {} + +jobs: + release: + name: "Release" + runs-on: "ubuntu-latest" + permissions: + contents: write + steps: + - name: "Checkout the repository" + uses: "actions/checkout@v4.1.7" + + - name: "ZIP the integration directory" + shell: "bash" + run: | + cd "${{ github.workspace }}/custom_components/sems" + zip sems.zip -r ./ + + - name: "Upload the ZIP file to the release" + uses: "softprops/action-gh-release@v2.0.8" + with: + files: ${{ github.workspace }}/custom_components/sems/sems.zip diff --git a/custom_components/sems/manifest.json b/custom_components/sems/manifest.json index d470880..f5a322f 100644 --- a/custom_components/sems/manifest.json +++ b/custom_components/sems/manifest.json @@ -8,5 +8,5 @@ "iot_class": "cloud_polling", "issue_tracker": "https://github.com/TimSoethout/goodwe-sems-home-assistant/issues", "requirements": [], - "version": "6.1.0" + "version": "6.1.1" } diff --git a/hacs.json b/hacs.json index 8e98205..22c8b7f 100644 --- a/hacs.json +++ b/hacs.json @@ -1,5 +1,7 @@ { "name": "GoodWe SEMS API", "content_in_root": false, + "zip_release": true, + "filename": "sems.zip", "homeassistant": "2024.5" }