Skip to content

Commit ab58c21

Browse files
committed
Switch to using GitHub releases
Signed-off-by: rany <[email protected]>
1 parent aad945d commit ab58c21

File tree

5 files changed

+54
-2
lines changed

5 files changed

+54
-2
lines changed

Diff for: .github/workflows/release.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
release_zip_file:
9+
name: Prepare release asset
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out repository
13+
uses: actions/checkout@v2
14+
15+
# Pack the open_meteo_solar_forecast dir as a zip and upload to the release
16+
- name: ZIP open_meteo_solar_forecast Dir
17+
run: |
18+
cd ${{ github.workspace }}/custom_components/open_meteo_solar_forecast
19+
zip open_meteo_solar_forecast.zip -r ./
20+
- name: Upload zip to release
21+
uses: svenstaro/upload-release-action@v1-release
22+
with:
23+
repo_token: ${{ secrets.GITHUB_TOKEN }}
24+
file: ${{ github.workspace }}/custom_components/open_meteo_solar_forecast/open_meteo_solar_forecast.zip
25+
asset_name: open_meteo_solar_forecast.zip
26+
tag: ${{ github.ref }}
27+
overwrite: true

Diff for: .github/workflows/validate.yml

+17
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+
9+
jobs:
10+
validate:
11+
runs-on: "ubuntu-latest"
12+
steps:
13+
- uses: "actions/checkout@v2"
14+
- name: HACS validation
15+
uses: "hacs/action@main"
16+
with:
17+
category: "integration"

Diff for: custom_components/open_meteo_solar_forecast/manifest.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,7 @@
77
"integration_type": "service",
88
"iot_class": "cloud_polling",
99
"requirements": ["open_meteo_solar_forecast==0.1.13"],
10-
"version": "0.1.8"
10+
"version": "0.1.9",
11+
"issue_tracker": "https://github.com/rany2/ha-open-meteo-solar-forecast/issues",
12+
"documentation": "https://github.com/rany2/ha-open-meteo-solar-forecast"
1113
}

Diff for: hacs.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"name": "Open-Meteo Solar Forecast",
33
"render_readme": false,
4-
"homeassistant": "2022.11"
4+
"homeassistant": "2022.11",
5+
"zip_release": true,
6+
"filename": "open_meteo_solar_forecast.zip"
57
}

Diff for: info.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
### Changes
22

3+
v0.1.9
4+
5+
- Switched to using GitHub releases.
6+
37
v0.1.8
48

59
- Fix ` TypeError: unsupported operand type(s) for *: ‘NoneType’ and ‘int’` bug.

0 commit comments

Comments
 (0)