Remove old web workflows and add new ones

This commit is contained in:
Gabe Kangas
2022-05-11 20:39:23 -07:00
parent 8638961b59
commit b66617961d
9 changed files with 3 additions and 141 deletions

12
.github/workflows/build-next.yml vendored Normal file
View File

@@ -0,0 +1,12 @@
name: Build admin app
on: [push, pull_request]
jobs:
run:
name: npm run build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install dependencies
run: cd web && npm install && npm run build

View File

@@ -1,21 +0,0 @@
name: Bundle admin (owncast/owncast-admin)
on:
repository_dispatch:
types: [bundle-admin-event]
jobs:
bundle:
runs-on: ubuntu-latest
steps:
- name: Bundle admin
uses: actions/checkout@v3
- run: build/admin/bundleAdmin.sh
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: Owncast
author_email: owncast@owncast.online
message: "Update admin to ${{ github.event.client_payload.sha }}"
add: "static/admin"
env:
GITHUB_TOKEN: ${{ secrets.GH_CR_PAT }}

View File

@@ -22,3 +22,4 @@ jobs:
uses: golangci/golangci-lint-action@v2
with:
only-new-issues: true
args: --timeout=3m

View File

@@ -24,6 +24,7 @@ jobs:
with:
# This part is also where you can pass other options, for example:
prettier_options: --write webroot/**/*.{js,md}
working_directory: web
only_changed: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -1,33 +0,0 @@
name: javascript-packages
on:
push:
paths:
- build/javascript/package.json
jobs:
run:
if: ${{ github.actor != 'dependabot[bot]' }}
name: npm run build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
- name: Build dependencies
uses: actions/setup-node@v3
with:
node-version: '12'
- run: cd build/javascript && npm run build
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: Owncast
author_email: owncast@owncast.online
message: "Commit updated Javascript packages"
add: "build/javascript/package* webroot/js/web_modules"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}