Skip to content

Validate device connectivity before creating a config entry (#5) #3

Validate device connectivity before creating a config entry (#5)

Validate device connectivity before creating a config entry (#5) #3

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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- 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@718ea10b132b3b2eba29c1007bb80653f286566b # v3.0.1
with:
generate_release_notes: true
files: dist/ha-run-chicken.zip