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+ 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.1.0"
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/lightcast/manifest.json"
25+
26+ - name : " ZIP the integration directory"
27+ shell : " bash"
28+ run : |
29+ cd "${{ github.workspace }}/custom_components/lightcast"
30+ zip lightcast.zip -r ./
31+
32+ - name : " Upload the ZIP file to the release"
33+ uses : softprops/action-gh-release@v0.1.15
34+ with :
35+ files : ${{ github.workspace }}/custom_components/lightcast/lightcast.zip
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " LightCast" ,
3+ "filename" : " lightcast.zip" ,
4+ "hide_default_branch" : true ,
5+ "homeassistant" : " 2023.8.0" ,
6+ "render_readme" : true ,
7+ "zip_release" : true
8+ }
You can’t perform that action at this time.
0 commit comments