Skip to content

Fix for sight = >nnn #7

Fix for sight = >nnn

Fix for sight = >nnn #7

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
release_zip_file:
name: Prepare release asset
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4.1.0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
#- name: Get version
# id: version
# uses: home-assistant/actions/helpers/version@master
#- name: "Set version number"
# run: |
# sed -i "/MINIMUM_HA_VERSION = /c\MINIMUM_HA_VERSION = \"$(jq .homeassistant -r ${{ github.workspace }}/hacs.json)\"" ${{ github.workspace }}/custom_components/hacs/const.py
# python3 ${{ github.workspace }}/manage/update_manifest.py --version ${{ steps.version.outputs.version }}
# Pack the viva dir as a zip and upload to the release
- name: ZIP viva Dir
run: |
cd ${{ github.workspace }}/custom_components/viva
zip viva.zip -r ./
- name: Upload zip to release
uses: svenstaro/upload-release-action@2.7.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ github.workspace }}/custom_components/viva/viva.zip
asset_name: viva.zip
tag: ${{ github.ref }}
overwrite: true