Skip to content

Commit

Permalink
Switch to using GitHub releases
Browse files Browse the repository at this point in the history
Signed-off-by: rany <ranygh@riseup.net>
  • Loading branch information
rany2 committed Jun 6, 2024
1 parent aad945d commit 44d5fc2
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release

on:
release:
types: [published]

jobs:
release_zip_file:
name: Prepare release asset
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2

# Pack the open_meteo_solar_forecast dir as a zip and upload to the release
- name: ZIP open_meteo_solar_forecast Dir
run: |
cd ${{ github.workspace }}/custom_components/open_meteo_solar_forecast
zip open_meteo_solar_forecast.zip -r ./
- name: Upload zip to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ github.workspace }}/custom_components/open_meteo_solar_forecast/open_meteo_solar_forecast.zip
asset_name: open_meteo_solar_forecast.zip
tag: ${{ github.ref }}
overwrite: true
17 changes: 17 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Validate

on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"

jobs:
validate:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- name: HACS validation
uses: "hacs/action@main"
with:
category: "integration"
2 changes: 1 addition & 1 deletion custom_components/open_meteo_solar_forecast/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"integration_type": "service",
"iot_class": "cloud_polling",
"requirements": ["open_meteo_solar_forecast==0.1.13"],
"version": "0.1.8"
"version": "0.1.9"
}
6 changes: 5 additions & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"name": "Open-Meteo Solar Forecast",
"render_readme": false,
"homeassistant": "2022.11"
"homeassistant": "2022.11",
"zip_release": true,
"filename": "open_meteo_solar_forecast.zip",
"documentation": "https://github.com/rany2/ha-open-meteo-solar-forecast",
"issue_tracker": "https://github.com/rany2/ha-open-meteo-solar-forecast/issues"
}
4 changes: 4 additions & 0 deletions info.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
### Changes

v0.1.9

- Switched to using GitHub releases.

v0.1.8

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

0 comments on commit 44d5fc2

Please sign in to comment.