generated from custom-cards/boilerplate-card
-
Notifications
You must be signed in to change notification settings - Fork 80
39 lines (32 loc) · 1007 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
28
29
30
31
32
33
34
35
36
37
38
39
name: Release
on:
release:
types: [published]
jobs:
release:
name: Prepare release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Make slug values available
uses: gacts/github-slug@v1
id: slug
- name: Build the file
run: |
cd /home/runner/work/clock-weather-card/clock-weather-card
yarn install
yarn version --no-git-tag-version --new-version ${{ steps.slug.outputs.version }}
yarn build
- name: Upload zip to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: /home/runner/work/clock-weather-card/clock-weather-card/dist/clock-weather-card.js
asset_name: clock-weather-card.js
tag: ${{ github.ref }}
overwrite: true
- name: Verify HACS compliance
uses: hacs/action@main
with:
category: plugin