-
-
Notifications
You must be signed in to change notification settings - Fork 42
44 lines (37 loc) · 1.18 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
34
35
36
37
38
39
40
41
42
43
44
name: Create and upload release assets
on:
release:
types:
- created
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
- name: Determine tag name
id: tagName
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Update manifest version
uses: jossef/action-set-json-field@v1
with:
file: public/manifest.json
field: Version
value: ${{ steps.tagName.outputs.tag }}.${{ github.run_number }}
- name: NPM Install
run: npm install
- name: VUE Build
run: npm run build
- name: Streamdeck Bundle
run: npm run bundle
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./de.perdoctus.streamdeck.homeassistant.streamDeckPlugin
asset_name: de.perdoctus.streamdeck.homeassistant.streamDeckPlugin
asset_content_type: application/zip