name: CD # Halo 官方可复用插件 CD 工作流:基于 GitHub Release tag 注入版本号构建 JAR 并 # 上传到 Release 资产。可复用工作流内部执行: # ./gradlew clean build -x check -Pversion=${tag 去 v 前缀} # 因此 Release tag(如 v0.1.0)自动保证 JAR 文件名 / plugin.yaml spec.version / # Manifest Implementation-Version 三处一致。 # 注意:CD 构建带 -x check,不能替代发布前必须通过且不可跳过的 CI 与测试。 # 首次上架应用市场审核通过前,skip-appstore-release: true —— 只上传 # GitHub Release 资产,不自动同步应用市场;审核通过后按官方发布文档 # 配置 app-id 与最小权限的个人令牌(HALO_PAT)后再开启同步。 on: release: types: - published jobs: cd: uses: halo-sigs/reusable-workflows/.github/workflows/plugin-cd.yaml@v5 permissions: contents: write with: ui-path: "plugin-operation-audit/ui" artifacts-path: "plugin-operation-audit/build/libs" build-args: "-p plugin-operation-audit" skip-node-setup: true skip-appstore-release: true