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 d158217 commit 6f946e8
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/flightradar24/manifest.json"
- name: "ZIP the integration directory"
shell: "bash"
run: |
cd "${{ github.workspace }}/custom_components/flightradar24"
zip flightradar24.zip -r ./
- name: "Upload the ZIP file to the release"
uses: softprops/[email protected]
with:
files: ${{ github.workspace }}/custom_components/flightradar24/flightradar24.zip
2 changes: 1 addition & 1 deletion custom_components/flightradar24/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/AlexandrErohin/home-assistant-flightradar24/issues",
"requirements": ["FlightRadarAPI==1.3.34", "pycountry==23.12.11"],
"version": "1.21.1"
"version": "1.21.2"
}
4 changes: 3 additions & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"name": "Flightradar24",
"filename": "flightradar24.zip",
"homeassistant": "2023.9.3",
"render_readme": true
"render_readme": true,
"zip_release": true
}

0 comments on commit 6f946e8

Please sign in to comment.