Skip to content

Commit 14fb121

Browse files
authored
Prepare ZIP file for release (#228)
1 parent 991de9a commit 14fb121

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
name: Publish
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
id-token: write
14+
steps:
15+
- name: Check out repository
16+
uses: actions/checkout@v6
17+
18+
- name: Create zipped release package
19+
shell: bash
20+
run: |
21+
cd "${{ github.workspace }}/custom_components/blitzortung"
22+
zip blitzortung.zip -r ./
23+
24+
- name: Upload zip to release
25+
uses: softprops/action-gh-release@v2.5.0
26+
with:
27+
files: ${{ github.workspace }}/custom_components/blitzortung/blitzortung.zip

hacs.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2-
"name": "Blitzortung.org Lightning Detector",
3-
"homeassistant": "2024.12.0"
2+
"name": "Blitzortung.org Lightning Detector",
3+
"homeassistant": "2024.12.0",
4+
"zip_release": true,
5+
"filename": "blitzortung.zip"
46
}

0 commit comments

Comments
 (0)