Skip to content

Switch to HACS zip releases; drop the Python packaging stack #2

Switch to HACS zip releases; drop the Python packaging stack

Switch to HACS zip releases; drop the Python packaging stack #2

Workflow file for this run

name: Build & Release on Tag
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Compute version from tag
id: ver
run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
- name: Stamp manifest version and build HACS zip
run: |
python3 scripts/inject_manifest_version.py --version "${{ steps.ver.outputs.version }}"
mkdir -p dist
# HACS extracts the zip directly into custom_components/run_chicken,
# so the integration files must sit at the root of the archive.
(cd custom_components/run_chicken && zip -r "${GITHUB_WORKSPACE}/dist/ha-run-chicken.zip" .)
- name: List artifacts
run: ls -lah dist
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: dist/ha-run-chicken.zip