Zip built files on release for non-HACS users.
This commit is contained in:
@@ -20,21 +20,25 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --immutable
|
run: yarn install --immutable
|
||||||
|
|
||||||
- name: Build the file
|
- name: Build the files
|
||||||
run: yarn run build
|
run: yarn run build
|
||||||
|
|
||||||
# Upload build file to the release as an asset.
|
- name: Zip the files
|
||||||
- name: Upload zip to release
|
uses: montudor/action-zip@v1
|
||||||
|
with:
|
||||||
|
args: cd dist/ && zip frigate-hass-card.zip *
|
||||||
|
|
||||||
|
- name: Upload files to release
|
||||||
uses: svenstaro/upload-release-action@2.5.0
|
uses: svenstaro/upload-release-action@2.5.0
|
||||||
|
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
file: dist/*.js
|
file: dist/*.js dist/*.zip
|
||||||
file_glob: true
|
file_glob: true
|
||||||
tag: ${{ github.ref }}
|
tag: ${{ github.ref }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
|
||||||
- name: HACS release validation
|
- name: HACS release validation
|
||||||
uses: "hacs/action@21.12.1"
|
uses: hacs/action@21.12.1
|
||||||
with:
|
with:
|
||||||
category: "plugin"
|
category: plugin
|
||||||
|
|||||||
Reference in New Issue
Block a user