Skip to content

Fixed handling mismatched zones #35

Fixed handling mismatched zones

Fixed handling mismatched zones #35

Workflow file for this run

name: Release
on:
release:
types: [published]
env:
COMPONENT_NAME: tauron_amiplus
jobs:
release:
name: Prepare release
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Download repo
uses: actions/[email protected]
- name: Adjust version number
shell: bash
run: |
version="${{ github.event.release.tag_name }}"
yq e -P -o=json \
-i ".version = \"${version}\"" \
"${{ github.workspace }}/custom_components/${{ env.COMPONENT_NAME }}/manifest.json"
- name: Zip ${{ env.COMPONENT_NAME }} dir
run: |
cd "${{ github.workspace }}/custom_components/${{ env.COMPONENT_NAME }}"
zip ${{ env.COMPONENT_NAME }}.zip -r ./
- name: Upload zip to release
uses: softprops/[email protected]
with:
files: ${{ github.workspace }}/custom_components/${{ env.COMPONENT_NAME }}/${{ env.COMPONENT_NAME }}.zip