Files
Nexus-Guard-Suite/.gitea/workflows/build_dashboard.yaml
T
datadunia 6f57540490
CI / build-server-core (push) Has been cancelled
CI / server-core-test (push) Has been skipped
CI / device-agent-test (push) Has been skipped
CI / dashboard-test (push) Has been skipped
CI / build-device-agent (push) Has been cancelled
CI / build-dashboard (push) Has been cancelled
CI / build-docs (push) Has been cancelled
CI / release (push) Has been cancelled
ci: add actions/cache@v4 for Go modules, Go build cache, and npm cache
- server-core: Go module + build cache (keyed by go.sum)
- dashboard-ui: npm cache (keyed by package-lock.json)
- device-agent: Go module + build cache (keyed by go.sum)
First run populates cache, subsequent runs restore from cache.
2026-06-17 13:39:31 +07:00

43 lines
1.1 KiB
YAML

name: Build Dashboard UI
on:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Configure git auth for submodules
run: git config --global url."https://x-access-token:${{ secrets.BUILD_TOKEN }}@git.datadunia.com/".insteadOf "https://git.datadunia.com/"
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
token: ${{ secrets.BUILD_TOKEN }}
persist-credentials: true
- uses: actions/setup-node@v4
with:
node-version: '24'
- uses: actions/cache@v4
with:
path: ~/.npm
key: dashboard-npm-${{ hashFiles('apps/dashboard-ui/package-lock.json') }}
restore-keys: dashboard-npm-
- name: Install
working-directory: apps/dashboard-ui
run: npm ci || npm install
- name: Build
working-directory: apps/dashboard-ui
run: npm run build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: dashboard-ui-dist
path: apps/dashboard-ui/dist/