Skip to content

Commit a24e857

Browse files
Andrey MAndrey M
authored andcommitted
Fix release workflow: combine release creation and asset upload
1 parent 64ba41c commit a24e857

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,16 @@ jobs:
3636
fi
3737
echo "✅ Version match: $TAG_VERSION"
3838
39+
- name: Create component archive
40+
run: |
41+
cd custom_components
42+
zip -r ../radpro.zip radpro/
43+
3944
- name: Create Release
4045
uses: softprops/action-gh-release@v2
4146
with:
4247
generate_release_notes: true
48+
files: radpro.zip
4349
body: |
4450
## Installation
4551
@@ -52,13 +58,3 @@ jobs:
5258
1. Download `radpro.zip` from assets below
5359
2. Extract to `config/custom_components/radpro/`
5460
3. Restart Home Assistant
55-
56-
- name: Create component archive
57-
run: |
58-
cd custom_components
59-
zip -r ../radpro.zip radpro/
60-
61-
- name: Upload Release Asset
62-
uses: softprops/action-gh-release@v2
63-
with:
64-
files: radpro.zip

0 commit comments

Comments
 (0)