Skip to content

Commit

Permalink
feat: create release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
topsworld committed Dec 13, 2024
1 parent b7592cd commit 1c655be
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1c655be

Please sign in to comment.