-
-
Notifications
You must be signed in to change notification settings - Fork 2
27 lines (24 loc) · 878 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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