Merge pull request #79 from schizza/chore/assets

Maintenance, adds workflow for ZIP assets in releases.
Updated README to view downloaded counts.
fix/wind_dir
Lukas Svoboda 2025-10-26 21:59:35 +01:00 committed by GitHub
commit 688bb9e374
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 27 additions and 1 deletions

21
.github/workflows/publish-assets.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Build & Attach ZIP asset
on:
release:
types: [published]
jobs:
build-zip:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create ZIP
run: |
mkdir -p dist
cd custom_components/sws12500
zip -r ../../dist/weather-station.zip . -x "*/__pycache__/*"
- name: Upload ZIP to release
uses: softprops/action-gh-release@v2
with:
files: dist/weather-station.zip

View File

@ -1,3 +1,6 @@
![GitHub Downloads](https://img.shields.io/github/downloads/schizza/SWS-12500-custom-component/total?label=downloads%20%28all%20releases%29)
![Latest release downloads](https://img.shields.io/github/downloads/schizza/SWS-12500-custom-component/latest/total?label=downloads%20%28latest%29)
# Integrates your Sencor SWS 12500 or 16600, GARNI, BRESSER weather stations seamlessly into Home Assistant # Integrates your Sencor SWS 12500 or 16600, GARNI, BRESSER weather stations seamlessly into Home Assistant
This integration will listen for data from your station and passes them to respective sensors. It also provides the ability to push data to Windy API. This integration will listen for data from your station and passes them to respective sensors. It also provides the ability to push data to Windy API.

View File

@ -1,4 +1,6 @@
{ {
"name": "Sencor SWS 12500 Weather station", "name": "Sencor SWS 12500 Weather station",
"render_readme": true "filename": "weather-station.zip",
"render_readme": true,
"zip_release": true
} }