Add zip release for download count
This commit is contained in:
parent
9a6e1155f9
commit
593842144a
2 changed files with 28 additions and 1 deletions
25
.github/workflows/release.yml
vendored
Normal file
25
.github/workflows/release.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release-zip:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: ZIP Component Dir
|
||||||
|
run: |
|
||||||
|
cd ${{ github.workspace }}/custom_components/hon
|
||||||
|
zip -r haier_hon.zip ./
|
||||||
|
|
||||||
|
- name: Upload zip to release
|
||||||
|
uses: svenstaro/upload-release-action@v2
|
||||||
|
with:
|
||||||
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
file: ${{ github.workspace }}/custom_components/hon/haier_hon.zip
|
||||||
|
asset_name: haier_hon.zip
|
||||||
|
tag: ${{ github.ref }}
|
||||||
|
overwrite: true
|
|
@ -1,4 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Haier hOn",
|
"name": "Haier hOn",
|
||||||
"homeassistant": "2023.2.0"
|
"homeassistant": "2023.2.0",
|
||||||
|
"zip_release": true,
|
||||||
|
"filename": "haier_hon.zip"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue