Skip to content

Control station/gui booster #159

Control station/gui booster

Control station/gui booster #159

name: Build ethernet view
on:
workflow_dispatch:
pull_request:
paths:
- ethernet-view/**
- common-front/**
jobs:
build-ethernet-view:
name: "Build ethernet view"
runs-on: ubuntu-latest
env:
FRONTEND_DIR: ./ethernet-view
COMMON_DIR: ./common-front
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
ethernet-view
common-front
- name: "Install common front dependencies"
working-directory: "${{env.COMMON_DIR}}"
run: npm install
- name: "Build common front"
working-directory: "${{env.COMMON_DIR}}"
run: npm run build
- name: "Install ethernet view dependencies"
working-directory: "${{env.FRONTEND_DIR}}"
run: npm install
- name: "Build ethernet view"
working-directory: "${{env.FRONTEND_DIR}}"
run: npm run build
- name: "Upload build"
uses: actions/upload-artifact@v4
with:
name: ethernet-view
path: "${{env.FRONTEND_DIR}}/static/*"
retention-days: 3
compression-level: 9