31 lines
959 B
YAML
31 lines
959 B
YAML
# Builds the production version of the app
|
|
name: build-prod
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- "*.*.z"
|
|
|
|
jobs:
|
|
prod:
|
|
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'release-prep') }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
|
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4
|
|
with:
|
|
node-version: "lts/*"
|
|
cache: "npm"
|
|
- name: NPM install
|
|
run: npm ci
|
|
- name: Install roku module dependencies
|
|
run: npm run ropm
|
|
- name: Build app for production
|
|
run: npm run build-prod
|
|
- uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4
|
|
with:
|
|
name: Jellyfin-Roku-v${{ env.newManVersion }}-${{ github.sha }}
|
|
path: ${{ github.workspace }}/build/staging
|
|
if-no-files-found: error
|