Add a production build workflow when pushing to master
This commit is contained in:
parent
a33ce8bd57
commit
42dacb87f3
|
@ -1,11 +1,13 @@
|
|||
name: build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
paths-ignore:
|
||||
- 'locale/**'
|
||||
branches-ignore:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
roku-app:
|
||||
dev:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
|
||||
|
@ -20,4 +22,4 @@ jobs:
|
|||
with:
|
||||
name: Jellyfin-Roku-dev-${{ github.sha }}
|
||||
path: ${{ github.workspace }}/out/staging
|
||||
if-no-files-found: error
|
||||
if-no-files-found: error
|
24
.github/workflows/build-prod.yml
vendored
Normal file
24
.github/workflows/build-prod.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
prod:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
|
||||
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
|
||||
with:
|
||||
node-version: "lts/*"
|
||||
cache: "npm"
|
||||
- run: npm ci
|
||||
- run: npx ropm install
|
||||
- run: make release
|
||||
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3
|
||||
with:
|
||||
name: Jellyfin-Roku-release-${{ github.sha }}
|
||||
path: ${{ github.workspace }}/out/staging
|
||||
if-no-files-found: error
|
Loading…
Reference in New Issue
Block a user