Skip to content

Release

Release #22

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