Initial commit: Main Gate Controller HACS integration
Tests / pytest + ruff (3.12) (push) Has been cancelled
Validate / HACS validation (push) Has been cancelled
Validate / Hassfest validation (push) Has been cancelled

This commit is contained in:
bot
2026-09-07 23:19:12 +02:00
commit 988a30cbf7
27 changed files with 2456 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
release:
name: Build & publish GitHub release
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Validate tag/manifest parity
shell: bash
run: |
set -euo pipefail
tag="${GITHUB_REF_NAME}"
version="v${tag#v}"
manifest_version="$(python -c 'import json,os,sys; \
p=os.path.join("custom_components","main_gate_controller","manifest.json"); \
sys.exit(0) if False else print(json.load(open(p))["version"])')"
echo "Tag version: $version"
echo "Manifest version: $manifest_version"
if [ "$version" != "$manifest_version" ]; then
echo "ERROR: Manifest version does not match the tag."
exit 1
fi
- name: Zip integration
shell: bash
run: |
cd custom_components
zip -r ../main_gate_controller.zip main_gate_controller
- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: main_gate_controller.zip