Skip to content

Release trigger

Release trigger #12

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 }}"
}
- 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: Debug tizen.js
uses: htsnvhoang/find-replace-multiple@master
with:
finds: |
console.log('Tizen adapter');
replaces: |
alert('Tizen adapter ' + tizen.application.getCurrentApplication().appInfo.version);
include: "jellyfin-tizen/tizen.js"
separator: "___"
- name: Build jellyfin-tizen
run: |
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."