Remove old web workflows and add new ones
This commit is contained in:
12
.github/workflows/build-next.yml
vendored
Normal file
12
.github/workflows/build-next.yml
vendored
Normal 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
|
||||
21
.github/workflows/bundle-admin.yml
vendored
21
.github/workflows/bundle-admin.yml
vendored
@@ -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 }}
|
||||
@@ -22,3 +22,4 @@ jobs:
|
||||
uses: golangci/golangci-lint-action@v2
|
||||
with:
|
||||
only-new-issues: true
|
||||
args: --timeout=3m
|
||||
1
.github/workflows/javascript-formatting.yml
vendored
1
.github/workflows/javascript-formatting.yml
vendored
@@ -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 }}
|
||||
|
||||
33
.github/workflows/javascript-packages.yaml
vendored
33
.github/workflows/javascript-packages.yaml
vendored
@@ -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 }}
|
||||
Reference in New Issue
Block a user