40 lines
845 B
YAML
40 lines
845 B
YAML
name: Build Dashboard
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out source
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 11
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 24
|
|
cache: pnpm
|
|
cache-dependency-path: pnpm-lock.yaml
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Build dashboard
|
|
run: pnpm build
|
|
|
|
- name: Upload dashboard artifact
|
|
uses: actions/upload-artifact@v4
|
|
env:
|
|
ACTIONS_RESULTS_URL: https://git.code.cq.cn/
|
|
with:
|
|
name: dashboard-dist
|
|
path: dist/
|
|
if-no-files-found: error
|
|
retention-days: 14
|