File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+
2+ # These are supported funding model platforms
3+
4+ patreon : Dala318
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " PH-803W" ,
3+ "render_readme" : true ,
4+ "zip_release" : true ,
5+ "filename" : " ph803w.zip"
6+ }
You can’t perform that action at this time.
0 commit comments