aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Basche <andre.basche@gmail.com>2023-04-12 23:59:09 +0200
committerAndre Basche <andre.basche@gmail.com>2023-04-12 23:59:09 +0200
commit593842144a437d08f7bb0a0224a0f749570900cc (patch)
tree4f012d74e4544df9580ed4233b576f945baeac94
parent9a6e1155f95548b03d1d065edb2c38e5f12cd04e (diff)
Add zip release for download counttest
-rw-r--r--.github/workflows/release.yml25
-rw-r--r--hacs.json4
2 files changed, 28 insertions, 1 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..584696c
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,25 @@
1name: Release
2
3on:
4 release:
5 types: [published]
6
7jobs:
8 release-zip:
9 runs-on: ubuntu-latest
10 steps:
11 - uses: actions/checkout@v2
12
13 - name: ZIP Component Dir
14 run: |
15 cd ${{ github.workspace }}/custom_components/hon
16 zip -r haier_hon.zip ./
17
18 - name: Upload zip to release
19 uses: svenstaro/upload-release-action@v2
20 with:
21 repo_token: ${{ secrets.GITHUB_TOKEN }}
22 file: ${{ github.workspace }}/custom_components/hon/haier_hon.zip
23 asset_name: haier_hon.zip
24 tag: ${{ github.ref }}
25 overwrite: true \ No newline at end of file
diff --git a/hacs.json b/hacs.json
index 85b5cbe..c9f8fc1 100644
--- a/hacs.json
+++ b/hacs.json
@@ -1,4 +1,6 @@
1{ 1{
2 "name": "Haier hOn", 2 "name": "Haier hOn",
3 "homeassistant": "2023.2.0" 3 "homeassistant": "2023.2.0",
4 "zip_release": true,
5 "filename": "haier_hon.zip"
4} 6}