mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-04-22 09:32:45 +08:00
feat: create release.yaml
This commit is contained in:
parent
b7592cd4e2
commit
1c655be8de
25
.github/workflows/release.yaml
vendored
Normal file
25
.github/workflows/release.yaml
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
release-zip:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- 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
|
Loading…
x
Reference in New Issue
Block a user