-
-
Notifications
You must be signed in to change notification settings - Fork 42
49 lines (39 loc) · 1.28 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
45
46
47
48
49
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 }}
- name: NPM Install
run: npm install
- name: VUE Build
run: npm run build
- name: Create plugin folder structure
run: cp -r ./dist de.perdoctus.streamdeck.homeassistant.sdPlugin
- name: Zip Dist
run: zip -r release.zip ./de.perdoctus.streamdeck.homeassistant.sdPlugin
- 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: ./release.zip
asset_name: de.perdoctus.streamdeck.homeassistant.streamDeckPlugin
asset_content_type: application/zip