Files
Nexus-Guard-Suite/.gitea/workflows/build_dashboard.yaml
T
datadunia 4c9e54aaa3
CI / build-docs (push) Successful in 1m10s
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-server-core (push) Successful in 2m52s
CI / build-device-agent (push) Successful in 2m38s
CI / build-dashboard (push) Successful in 6m15s
CI / release (push) Successful in 32s
fix(ci): replace go-hashfiles with shell hash for dashboard (no Go installed)
2026-06-17 15:07:21 +07:00

50 lines
1.3 KiB
YAML

name: Build Dashboard UI
on:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
env:
RUNNER_TOOL_CACHE: /toolcache
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'
- name: Hash package-lock
id: hash-npm
run: echo "hash=$(sha256sum apps/dashboard-ui/package-lock.json | cut -d' ' -f1)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v3
with:
path: |
~/.npm
key: npm-dashboard-${{ steps.hash-npm.outputs.hash }}
restore-keys: npm-dashboard-
- 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/