Skip to content

Commit

Permalink
Switch to zip releases (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
dext0r committed Oct 7, 2023
1 parent cad5131 commit 6627426
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
release:
types:
- published

permissions:
contents: write

jobs:
release-zip:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Prepare release
run: |
cd ${{ github.workspace }}/custom_components/yandex_smart_home
zip -r yandex_smart_home.zip ./
- name: Upload zip
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ github.workspace }}/custom_components/yandex_smart_home/yandex_smart_home.zip
asset_name: yandex_smart_home.zip
tag: ${{ github.ref }}
overwrite: true
4 changes: 3 additions & 1 deletion hacs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
"country": ["RU", "BY"],
"homeassistant": "2022.5",
"name": "Yandex Smart Home",
"render_readme": true
"render_readme": true,
"zip_release": true,
"filename": "yandex_smart_home.zip"
}

0 comments on commit 6627426

Please sign in to comment.