ci: 发布验收 P0 项——补齐 CI/CD 工作流

- .github/workflows/ci.yml: push/PR 触发,复用 halo-sigs/reusable-workflows
  plugin-ci.yaml@v5 执行 ./gradlew clean build(全部测试+检查)
- .github/workflows/cd.yml: GitHub Release published 触发,复用 plugin-cd.yaml@v5,
  按发布 tag 去 v 前缀注入 -Pversion 构建(-x check,不替代发布前 CI),
  skip-appstore-release: true——首次上架审核前只上传 Release 资产,不自动同步应用市场
- 根目录 gradlew/gradlew.bat: 转发到 plugin-operation-audit/ 的 Gradle wrapper
  (官方可复用工作流从仓库根执行 ./gradlew,build-args 以 -p 指定子项目目录)
- artifacts-path 限定 plugin-operation-audit/build/libs(仅插件 JAR,不误传其他制品)
This commit is contained in:
2026-11-22 23:26:07 +08:00
parent 81693e4778
commit 44eca75e6e
4 changed files with 64 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
name: CI
# Halo 官方可复用插件 CI 工作流:./gradlew clean build(含全部后端测试与 UI 检查)。
# 本仓库 Gradle 构建根在 plugin-operation-audit/ 子目录:
# - 根目录 gradlew/gradlew.bat 是转发脚本;
# - build-args 传 -p 指定项目目录。
# UI 子项目使用 npm(package-lock.json),没有 pnpm-lock.yaml,
# 因此 skip-node-setup: true,由 ubuntu-latest 预装的 Node/npm 配合
# node-gradle 插件(download = false)完成前端构建与 vitest 测试。
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
ci:
uses: halo-sigs/reusable-workflows/.github/workflows/plugin-ci.yaml@v5
with:
ui-path: "plugin-operation-audit/ui"
artifacts-path: "plugin-operation-audit/build/libs"
build-args: "-p plugin-operation-audit"
skip-node-setup: true