2022-08-16 04:47:31 +02:00
|
|
|
name: Build and bundle web app into Owncast
|
2022-06-20 00:30:32 +02:00
|
|
|
on:
|
2022-08-16 04:23:42 +02:00
|
|
|
push:
|
2022-08-20 07:13:01 +02:00
|
|
|
branches:
|
|
|
|
- webv2
|
|
|
|
- develop
|
2022-08-16 04:23:42 +02:00
|
|
|
paths:
|
|
|
|
- web/**
|
|
|
|
|
2022-06-20 00:30:32 +02:00
|
|
|
jobs:
|
|
|
|
bundle:
|
|
|
|
runs-on: ubuntu-latest
|
2022-11-19 20:56:15 +01:00
|
|
|
if: github.repository == 'owncast/owncast'
|
2022-11-05 04:04:13 +01:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-06-20 00:30:32 +02:00
|
|
|
steps:
|
2022-08-16 04:23:42 +02:00
|
|
|
- name: Bundle web app (next.js build)
|
2022-06-20 00:30:32 +02:00
|
|
|
uses: actions/checkout@v3
|
|
|
|
- run: build/web/bundleWeb.sh
|
|
|
|
|
|
|
|
- name: Commit changes
|
|
|
|
uses: EndBug/add-and-commit@v9
|
|
|
|
with:
|
2022-08-16 05:41:10 +02:00
|
|
|
pull: --rebase --autostash
|
2022-08-16 04:23:42 +02:00
|
|
|
message: 'Bundle embedded web app'
|
2022-06-20 00:30:32 +02:00
|
|
|
add: 'static/web'
|