Skip to content

add frontend build

add frontend build #23

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
container: "debian:stable-slim"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache-dependency-path: static
cache: npm
- name: Build Frontend
run: npm --prefix static ci && npm --prefix static run build
- uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Prepare Backend
run: |
apt-get update
apt-get install --yes --no-install-recommends make gcc libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
- name: Build Backend
run: make build-static
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: binary
path: service
retention-days: 5