-
-
Notifications
You must be signed in to change notification settings - Fork 68
52 lines (42 loc) · 1.24 KB
/
build.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
50
51
52
name: Build
on:
push:
workflow_dispatch:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js 14.x
uses: actions/setup-node@v4
with:
node-version: 14.x
- name: Prepare environment
run: |
rm -rf ./build/*
mkdir ./build
- name: Install ares-cli globally
run: npm install -g @webosose/ares-cli
- name: Check packaging
run: ares-package --check
- name: Build package
run: ares-package --no-minify --outdir build/ services frontend
- name: Create manifest for distribution
run: node tools/gen-manifest.js build/org.jellyfin.webos.manifest.json
- name: Upload CI artifacts
uses: actions/upload-artifact@v3
with:
name: jellyfin_webos
path: |
${{github.workspace}}/build/*
- name: Upload GitHub Release Artifacts
uses: shogo82148/actions-upload-release-asset@v1
if: ${{ github.event_name == 'release' }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: 'build/*'
overwrite: true