Skip to content

Commit 1da10df

Browse files
committed
Fix HACS configuration for proper zip structure
1 parent 456146b commit 1da10df

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ jobs:
4444
4545
- name: Create release archives
4646
run: |
47-
# Create zip with content at root (for HACS)
48-
cd custom_components/cafe
49-
zip -r ../../cafe.zip . -x "*.DS_Store" "*/.DS_Store"
47+
# Create zip with cafe/ folder at root (for HACS with content_in_root: false)
48+
cd custom_components
49+
zip -r ../cafe.zip cafe -x "*.DS_Store" "*/.DS_Store"
5050
51-
# Create alternative tar.gz with content at root
52-
tar -czf ../../cafe.tar.gz --exclude="*.DS_Store" .
53-
cd ../..
51+
# Create alternative tar.gz
52+
tar -czf ../cafe.tar.gz --exclude="*.DS_Store" cafe
53+
cd ..
5454
5555
echo "Created archives:"
5656
ls -la *.zip *.tar.gz

hacs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "C.A.F.E.",
33
"render_readme": true,
44
"homeassistant": "2024.1.0",
5-
"content_in_root": true,
5+
"content_in_root": false,
66
"zip_release": true,
77
"filename": "cafe.zip"
88
}

0 commit comments

Comments
 (0)