Skip to content

Commit

Permalink
Jmcollin78/issue916 (#917)
Browse files Browse the repository at this point in the history
* Issue #916 - Add github download count

* put the vrsion as last field

* use ecole_directe examples

---------

Co-authored-by: Jean-Marc Collin <jean-marc.collin-extern@renault.com>
  • Loading branch information
jmcollin78 and Jean-Marc Collin authored Feb 17, 2025
1 parent 59abbe1 commit 077d2d4
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
release:
types: [published]

jobs:
release:
name: Prepare release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: "Set version number"
run: |
yq -i -o json '.version="${{ github.event.release.tag_name }}"' \
"${{ github.workspace }}/custom_components/versatile_thermostat/manifest.json"
# Pack the HACS dir as a zip and upload to the release
- name: ZIP Versatile Thermostat Dir
run: |
cd "${{ github.workspace }}/custom_components/versatile_thermostat"
zip versatile_thermostat.zip -r ./
- name: Upload zip to release
uses: softprops/action-gh-release@v2.2.1
with:
files: ${{ github.workspace }}/custom_components/versatile_thermostat/versatile_thermostat.zip
4 changes: 2 additions & 2 deletions custom_components/versatile_thermostat/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"quality_scale": "silver",
"requirements": [],
"ssdp": [],
"version": "7.2.3",
"zeroconf": []
"zeroconf": [],
"version": "7.2.3"
}
1 change: 1 addition & 0 deletions hacs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"content_in_root": false,
"render_readme": true,
"hide_default_branch": false,
"filename": "versatile_thermostat.zip",
"homeassistant": "2025.1.2"
}

0 comments on commit 077d2d4

Please sign in to comment.