File tree Expand file tree Collapse file tree
custom_components/roborock_custom_map Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ name : Validate HACS
3+ on :
4+ push :
5+ pull_request :
6+ jobs :
7+ hacs :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v4
11+ name : Checkout code
12+
13+ - name : HACS Action
14+ uses : hacs/action@main
15+ with :
16+ category : integration
17+ ignore : brands
Original file line number Diff line number Diff line change 1+ ---
2+ name : Validate with hassfest
3+
4+ on :
5+ push :
6+ pull_request :
7+
8+ jobs :
9+ hassfest :
10+ runs-on : " ubuntu-latest"
11+ steps :
12+ - uses : actions/checkout@v4
13+ name : Checkout code
14+
15+ - uses : home-assistant/actions/hassfest@master
16+ name : Run hassfest validation
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ env :
8+ COMPONENT_NAME : roborock_custom_map
9+
10+ jobs :
11+ release :
12+ name : Prepare release
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : write
16+ id-token : write
17+ steps :
18+ - name : Download repo
19+ uses : actions/checkout@v4
20+
21+ - name : Adjust version number
22+ shell : bash
23+ run : |
24+ version="${{ github.event.release.tag_name }}"
25+ yq e -P -o=json \
26+ -i ".version = \"${version}\"" \
27+ "${{ github.workspace }}/custom_components/${{ env.COMPONENT_NAME }}/manifest.json"
28+
29+ - name : Zip ${{ env.COMPONENT_NAME }} dir
30+ run : |
31+ cd "${{ github.workspace }}/custom_components/${{ env.COMPONENT_NAME }}"
32+ zip ${{ env.COMPONENT_NAME }}.zip -r ./
33+
34+ - name : Upload zip to release
35+ uses : softprops/action-gh-release@v2.1.0
36+ with :
37+ files : ${{ github.workspace }}/custom_components/${{ env.COMPONENT_NAME }}/${{ env.COMPONENT_NAME }}.zip
Original file line number Diff line number Diff line change 88 "iot_class" : " local_polling" ,
99 "issue_tracker" : " https://github.com/Lash-L/RoborockCustomMap/issues" ,
1010 "requirements" : [],
11-
1211 "version" : " 0.1.1"
1312}
You can’t perform that action at this time.
0 commit comments