From 6f946e85126b5ede2a4cbe6a05e7715491236339 Mon Sep 17 00:00:00 2001 From: Alex Erohin Date: Wed, 9 Oct 2024 13:00:10 +0300 Subject: [PATCH] zip release --- .github/workflows/release.yml | 35 +++++++++++++++++++ custom_components/flightradar24/manifest.json | 2 +- hacs.json | 4 ++- 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c8a3e81 --- /dev/null +++ b/.github/workflows/release.yml @@ -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/action-gh-release@v2.0.8 + with: + files: ${{ github.workspace }}/custom_components/flightradar24/flightradar24.zip diff --git a/custom_components/flightradar24/manifest.json b/custom_components/flightradar24/manifest.json index d1f351b..7a582f2 100644 --- a/custom_components/flightradar24/manifest.json +++ b/custom_components/flightradar24/manifest.json @@ -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" } \ No newline at end of file diff --git a/hacs.json b/hacs.json index 52f8f60..1ec3a3b 100644 --- a/hacs.json +++ b/hacs.json @@ -1,5 +1,7 @@ { "name": "Flightradar24", + "filename": "flightradar24.zip", "homeassistant": "2023.9.3", - "render_readme": true + "render_readme": true, + "zip_release": true } \ No newline at end of file