-
Notifications
You must be signed in to change notification settings - Fork 0
106 lines (90 loc) · 3.28 KB
/
jellyfin-web_release_trigger.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: Release trigger
on:
repository_dispatch:
types: [new-jellyfin-web-release]
workflow_dispatch:
jobs:
jellyfin-web_release_trigger:
runs-on: ubuntu-latest
steps:
- run: env
- name: Checkout
uses: actions/checkout@v3
- name: Get next version
uses: reecetech/[email protected]
id: version
with:
scheme: semver
increment: patch
- name: Clone jellyfin-tizen
uses: sudosubin/[email protected]
with:
repository: 'jellyfin/jellyfin-tizen'
platform: 'github'
path: 'jellyfin-tizen'
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: '>=14'
- name: Modify jellyfin-tizen/package.json
id: info
uses: jaywcjlove/github-action-package@main
with:
path: 'jellyfin-tizen/package.json'
data: |
{
"name": "@glenlowland/jellyfin-tizen",
"packageType": "app",
"appName": "Jellyfin",
"appPath": "index.html",
"version": "${{ steps.version.outputs.version }}",
"keys": [
"MediaPlayPause", "MediaPlay", "MediaPause", "MediaStop",
"MediaTrackPrevious", "MediaTrackNext", "MediaRewind", "MediaFastForward"
]
}
- name: Set tize-adapter.js app version
uses: htsnvhoang/find-replace-multiple@master
with:
finds: |
version: 'DEVELOPMENT'
replaces: |
version: '${{ steps.info.outputs.version }}'
include: "tizen-adapter.js"
separator: "___"
- name: Enable TrueHD Audio
uses: htsnvhoang/find-replace-multiple@master
with:
finds: |
return profileBuilder({ enableMkvProgressive: false, enableSsaRender: true });
replaces: |
return profileBuilder({ enableMkvProgressive: false, enableSsaRender: true, supportsTrueHd: true });
include: "jellyfin-tizen/tizen.js"
separator: "___"
- name: Include tizen-adapter.js in the app
uses: htsnvhoang/find-replace-multiple@master
with:
finds: |
webapis.setAttribute('src', '$WEBAPIS/webapis/webapis.js');
replaces: |
webapis.setAttribute('src', '../tizen-adapter.js');
include: "jellyfin-tizen/gulpfile.babel.js"
separator: "___"
- name: Build jellyfin-tizen
run: |
cp tizen-adapter.js jellyfin-tizen/
cd jellyfin-tizen
rm .gitignore
npm install @glenlowland/jellyfin-web
JELLYFIN_WEB_DIR=./node_modules/@glenlowland/jellyfin-web/dist npm ci --no-audit
- name: Publish new @glenlowland/jellyfin-tizen package version
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: jellyfin-tizen
access: public
- name: Release Build Result
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.info.outputs.version }}
body: "A new version of @glenlowland/jellyfin-tizen has been published because of a new release of @glenlowland/jellyfin-web."