-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (29 loc) · 1.06 KB
/
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
28
29
30
31
32
33
name: Release
on:
release:
types: [published]
jobs:
release:
name: Prepare release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
# Build
- name: Build the file
run: |
cd /home/runner/work/versatile-thermostat-ui-card/versatile-thermostat-ui-card
npm install --force
npm run build
# Upload build file to the release as an asset.
- name: Upload zip to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: /home/runner/work/versatile-thermostat-ui-card/versatile-thermostat-ui-card/dist/versatile-thermostat-ui-card.js
asset_name: versatile-thermostat-ui-card.js
tag: ${{ github.ref }}
overwrite: true
- name: HACS Action
uses: "hacs/action@main"
with:
category: "plugin"