diff --git a/docs/scripts/deploy-jayucloud-salon-production.ps1 b/docs/scripts/deploy-jayucloud-salon-production.ps1 index 01a0040d..b0adb990 100644 --- a/docs/scripts/deploy-jayucloud-salon-production.ps1 +++ b/docs/scripts/deploy-jayucloud-salon-production.ps1 @@ -1,5 +1,5 @@ param( - [string]$RepoRoot = (Split-Path -Parent $PSScriptRoot), + [string]$RepoRoot = (Join-Path $PSScriptRoot "..\.."), [string]$ServerInfoPath = "", [switch]$DryRun, [switch]$Deploy, diff --git a/docs/项目变更记录.md b/docs/项目变更记录.md index 8eaaedad..07308653 100644 --- a/docs/项目变更记录.md +++ b/docs/项目变更记录.md @@ -1,5 +1,10 @@ # 项目变更记录 +## 2026-08-28 修复生产构建脚本仓库根目录解析 + +- 修复 Gitea Runner 从 `docs/scripts` 执行 Salon 发布脚本时默认仓库根目录误解析为 `docs`,导致找不到 `JC-Salon-Core` 的问题。 +- 默认 `RepoRoot` 现在从脚本目录向上两级解析到仓库根目录,仍支持通过参数显式覆盖。 + ## 2026-08-28 修复 Gitea Detached HEAD 构建失败 - 修复 Gitea Actions 检出合并提交后处于 detached HEAD,`git branch --show-current` 返回空值导致 PowerShell `.Trim()` 空引用异常的问题。