2023-12-16 01:47:11 +00:00
|
|
|
# Builds the production version of the app
|
2023-05-03 21:21:04 +00:00
|
|
|
name: build-prod
|
2023-02-25 18:29:04 +00:00
|
|
|
|
2022-09-03 12:08:45 +00:00
|
|
|
on:
|
|
|
|
push:
|
2023-02-25 18:29:04 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2023-12-16 01:47:11 +00:00
|
|
|
- "*.*.z"
|
2023-02-25 18:29:04 +00:00
|
|
|
|
2022-09-03 12:08:45 +00:00
|
|
|
jobs:
|
2023-02-25 18:29:04 +00:00
|
|
|
prod:
|
2023-12-16 01:47:11 +00:00
|
|
|
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'release-prep') }}
|
2023-02-22 18:34:38 +00:00
|
|
|
runs-on: ubuntu-latest
|
2022-09-03 12:08:45 +00:00
|
|
|
steps:
|
2023-10-27 02:46:04 +00:00
|
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
2024-02-07 06:18:16 +00:00
|
|
|
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
|
2022-09-03 12:08:45 +00:00
|
|
|
with:
|
2023-02-22 18:34:38 +00:00
|
|
|
node-version: "lts/*"
|
|
|
|
cache: "npm"
|
2023-05-03 21:21:04 +00:00
|
|
|
- name: NPM install
|
|
|
|
run: npm ci
|
|
|
|
- name: Install roku module dependencies
|
2023-06-23 17:09:36 +00:00
|
|
|
run: npm run ropm
|
2023-05-03 21:21:04 +00:00
|
|
|
- name: Build app for production
|
|
|
|
run: npm run build-prod
|
2024-02-05 21:52:26 +00:00
|
|
|
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
|
2022-09-03 12:08:45 +00:00
|
|
|
with:
|
2023-05-03 21:21:04 +00:00
|
|
|
name: Jellyfin-Roku-v${{ env.newManVersion }}-${{ github.sha }}
|
|
|
|
path: ${{ github.workspace }}/build/staging
|
2023-06-23 17:09:36 +00:00
|
|
|
if-no-files-found: error
|