Skip to content

Commit

Permalink
zip release
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandrErohin committed Oct 9, 2024
1 parent 450065a commit 00aba6b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Release"

on:
release:
types:
- "published"

permissions: {}

jobs:
release:
name: "Release"
runs-on: "ubuntu-latest"
permissions:
contents: write
steps:
- name: "Checkout the repository"
uses: "actions/checkout@v4"

- name: "Adjust version number"
shell: "bash"
run: |
yq -i -o json '.version="${{ github.event.release.tag_name }}"' \
"${{ github.workspace }}/custom_components/tplink_router/manifest.json"
- name: "ZIP the integration directory"
shell: "bash"
run: |
cd "${{ github.workspace }}/custom_components/tplink_router"
zip tplink_router.zip -r ./
- name: "Upload the ZIP file to the release"
uses: softprops/[email protected]
with:
files: ${{ github.workspace }}/custom_components/tplink_router/tplink_router.zip
2 changes: 1 addition & 1 deletion custom_components/tplink_router/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/AlexandrErohin/home-assistant-tplink-router/issues",
"requirements": ["tplinkrouterc6u==4.2.1"],
"version": "1.16.0"
"version": "1.16.1"
}
4 changes: 3 additions & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "TP-Link Router",
"filename": "tplink_router.zip",
"homeassistant": "2023.9.3",
"hide_default_branch": true,
"render_readme": true
"render_readme": true,
"zip_release": true
}

0 comments on commit 00aba6b

Please sign in to comment.