# 业务 CI：调用 platform/workflow 可复用工作流（固定 tag 1.0，升级时改 @ 后缀并同步公共仓打 tag）

name: CI

on:
  push:
    branches: [main, master]
  pull_request:
    branches: [main, master]

concurrency:
  group: ci-${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  build:
    uses: platform/workflow/.gitea/workflows/web-spa-deploy.yml@1.0
    with:
      node_version: "22.14.0"
      yarn_version: "1.22.22"
      project_dir: "chat-one-web"
      build_script: "yarn build"
      build_output_dir: "dist"
    secrets: inherit
