Skip to content

Commit

Permalink
chore: fix versioning in release zip and HACS settings
Browse files Browse the repository at this point in the history
- Fixed quoting issue with auto version updates
- Configure HACS to use zipped release files
- Bumped minimum HA version to 2024.6
  • Loading branch information
agittins committed Jul 16, 2024
1 parent f2abc11 commit e1c90c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ jobs:
version="${{ github.event.release.tag_name }}"
version="${version,,}"
version="${version#v}"
sed -i '/VERSION.=./c\VERSION = "${version}"' "${{ env.BERMUDA_ROOT_DIR }}/const.py"
(jq '.version = "${version}"' "${{ env.BERMUDA_ROOT_DIR }}/manifest.json") > "${{ env.BERMUDA_ROOT_DIR }}/manifest.json.tmp"
# update const.py
sed -i \
"/^VERSION.*=./c\VERSION = \"${version}\"" \
"${{ env.BERMUDA_ROOT_DIR }}/const.py"
# update manifest.json
jq ".version = \"${version}\"" "${{ env.BERMUDA_ROOT_DIR }}/manifest.json" > "${{ env.BERMUDA_ROOT_DIR }}/manifest.json.tmp"
mv "${{ env.BERMUDA_ROOT_DIR }}/manifest.json.tmp" "${{ env.BERMUDA_ROOT_DIR }}/manifest.json"
- name: Zip the integration directory
Expand Down
6 changes: 4 additions & 2 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "Bermuda BLE Trilateration",
"hacs": "1.6.0",
"homeassistant": "2023.8",
"render_readme": true
"homeassistant": "2024.6",
"render_readme": true,
"zip_release": true,
"filename": "bermuda.zip"
}

0 comments on commit e1c90c0

Please sign in to comment.