Skip to content

Commit 5da7174

Browse files
committed
Add HACS-files
1 parent ac60708 commit 5da7174

5 files changed

Lines changed: 74 additions & 0 deletions

File tree

.github/FUNDING.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
# These are supported funding model platforms
3+
4+
patreon: Dala318

.github/workflows/hacs.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: HACS Action
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
hacs:
9+
name: HACS Action
10+
runs-on: "ubuntu-latest"
11+
steps:
12+
- name: HACS Action
13+
uses: "hacs/action@main"
14+
with:
15+
category: "integration"

.github/workflows/hassfest.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Validate with hassfest
2+
3+
on:
4+
push:
5+
pull_request:
6+
# schedule:
7+
# - cron: "0 0 * * *"
8+
9+
jobs:
10+
validate:
11+
runs-on: "ubuntu-latest"
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: home-assistant/actions/hassfest@master

.github/workflows/release.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: "Release"
2+
3+
on:
4+
release:
5+
types:
6+
- "published"
7+
8+
permissions: {}
9+
10+
jobs:
11+
release:
12+
name: "Release"
13+
runs-on: "ubuntu-latest"
14+
permissions:
15+
contents: write
16+
steps:
17+
- name: "Checkout the repository"
18+
uses: "actions/checkout@v4"
19+
20+
- name: "Adjust version number"
21+
shell: "bash"
22+
run: |
23+
yq -i -o json '.version="${{ github.event.release.tag_name }}"' \
24+
"${{ github.workspace }}/custom_components/ph803w/manifest.json"
25+
26+
- name: "ZIP the integration directory"
27+
shell: "bash"
28+
run: |
29+
cd "${{ github.workspace }}/custom_components/ph803w"
30+
zip ph803w.zip -r ./
31+
32+
- name: "Upload the ZIP file to the release"
33+
uses: softprops/action-gh-release@v2.0.8
34+
with:
35+
files: ${{ github.workspace }}/custom_components/ph803w/ph803w.zip

hacs.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "PH-803W",
3+
"render_readme": true,
4+
"zip_release": true,
5+
"filename": "ph803w.zip"
6+
}

0 commit comments

Comments
 (0)