2022-08-16 05:47:31 +03:00
|
|
|
name: Build and bundle web app into Owncast
|
2022-06-20 01:30:32 +03:00
|
|
|
on:
|
2022-08-16 05:23:42 +03:00
|
|
|
push:
|
2022-08-20 08:13:01 +03:00
|
|
|
branches:
|
|
|
|
- develop
|
2022-08-16 05:23:42 +03:00
|
|
|
paths:
|
2022-12-26 22:30:16 +03:00
|
|
|
- 'web/**'
|
2023-01-28 03:18:02 +03:00
|
|
|
- '!**.md'
|
2022-08-16 05:23:42 +03:00
|
|
|
|
2022-06-20 01:30:32 +03:00
|
|
|
jobs:
|
|
|
|
bundle:
|
|
|
|
runs-on: ubuntu-latest
|
2022-11-19 22:56:15 +03:00
|
|
|
if: github.repository == 'owncast/owncast'
|
2022-11-05 06:04:13 +03:00
|
|
|
|
2022-06-20 01:30:32 +03:00
|
|
|
steps:
|
2022-11-24 02:06:51 +03:00
|
|
|
- id: skip_check
|
|
|
|
uses: fkirc/skip-duplicate-actions@v5
|
|
|
|
with:
|
|
|
|
concurrent_skipping: 'same_content_newer'
|
|
|
|
|
2022-08-16 05:23:42 +03:00
|
|
|
- name: Bundle web app (next.js build)
|
2022-06-20 01:30:32 +03:00
|
|
|
uses: actions/checkout@v3
|
|
|
|
- run: build/web/bundleWeb.sh
|
|
|
|
|
|
|
|
- name: Commit changes
|
|
|
|
uses: EndBug/add-and-commit@v9
|
|
|
|
with:
|
2022-08-16 06:41:10 +03:00
|
|
|
pull: --rebase --autostash
|
2022-08-16 05:23:42 +03:00
|
|
|
message: 'Bundle embedded web app'
|
2022-06-20 01:30:32 +03:00
|
|
|
add: 'static/web'
|