Skip to content

Commit feabbb6

Browse files
committed
feat: release workflow and version update to 1.0.0
1 parent 9d742c8 commit feabbb6

File tree

4 files changed

+59
-1
lines changed

4 files changed

+59
-1
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
env:
9+
COMPONENT_NAME: solis_cloud_control
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
15+
permissions:
16+
contents: write
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Set version number
22+
run: |
23+
version=${GITHUB_REF_NAME#v}
24+
yq e -P -o=json \
25+
-i ".version = \"${version}\"" \
26+
"${{ github.workspace }}/custom_components/${{ env.COMPONENT_NAME }}/manifest.json"
27+
28+
- name: Zip ${{ env.COMPONENT_NAME }} directory
29+
run: |
30+
cd "${{ github.workspace }}/custom_components/${{ env.COMPONENT_NAME }}"
31+
zip ${{ env.COMPONENT_NAME }}.zip -r ./
32+
33+
- uses: softprops/action-gh-release@v2
34+
with:
35+
files: ${{ github.workspace }}/custom_components/${{ env.COMPONENT_NAME }}/${{ env.COMPONENT_NAME }}.zip

.github/workflows/validate.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Validate
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: "0 0 * * *"
8+
workflow_dispatch:
9+
10+
jobs:
11+
validate-hacs:
12+
runs-on: "ubuntu-latest"
13+
14+
steps:
15+
- uses: "hacs/action@main"
16+
with:
17+
category: "integration"

custom_components/solis_cloud_control/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"domain": "solis_cloud_control",
33
"name": "Solis Cloud Control",
4-
"version": "0.0.2",
4+
"version": "1.0.0",
55
"documentation": "https://github.com/mkuthan/solis-cloud-control",
66
"codeowners": [
77
"@mkuthan"

hacs.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "Solis Cloud Control",
3+
"render_readme": true,
4+
"content_in_root": false,
5+
"homeassistant": "2025.3.3"
6+
}

0 commit comments

Comments
 (0)