Skip to content

Cache sensor data when not available - v0.0.9 #11

Cache sensor data when not available - v0.0.9

Cache sensor data when not available - v0.0.9 #11

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/[email protected]
- 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 zcsazzurro dir as a zip and upload to the release
- name: ZIP zcsazzurro Dir
run: |
cd ${{ github.workspace }}/custom_components/zcsazzurro
zip zcsazzurro.zip -r ./
- name: Upload zip to release
uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ github.workspace }}/custom_components/zcsazzurro/zcsazzurro.zip
asset_name: zcsazzurro.zip
tag: ${{ github.ref }}
overwrite: true