Files
ha_xiaomi_home/.github/workflows/release.yaml
Li Shuzhen 8a59021445 fix: action errors and warnings (#1802)
* feat: ignore license in validate-hacs action

* feat: add brand icon

* style: format multi_lang.json

* feat: update to action/checkout@v5
2026-09-24 12:07:01 +08:00

26 lines
631 B
YAML

name: Release
on:
release:
types: [published]
jobs:
release-zip:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: ZIP Component Dir
run: |
cd ${{ github.workspace }}/custom_components/xiaomi_home
zip -r xiaomi_home.zip ./
- name: Upload zip to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ github.workspace }}/custom_components/xiaomi_home/xiaomi_home.zip
asset_name: xiaomi_home.zip
tag: ${{ github.ref }}
overwrite: true