fix(ci): 用 Python 重写 pre-build 脚本,替换 PowerShell 依赖
Deploy to Production / pre-check (push) Successful in 29s
Deploy to Production / build (push) Failing after 23m24s
Deploy to Production / deploy-edgeone (push) Skipped
Deploy to Production / deploy-upyun (push) Skipped
Deploy to Production / finalize (push) Skipped
Deploy to Production / notify-failure (push) Successful in 4s

Gitea 自建 runner 镜像不含 PowerShell,导致 Run Pre-Build Scripts
以 exitcode 127 失败。改用 Python 3(GitHub/Gitea runner 均预装),
跨平台通用,迁回 GitHub 无需改回。
This commit is contained in:
zqlit committed 2026-09-30 22:50:43 +08:00
1 parent f64d8f30f3
commit 33d54453d7
2 files changed
+112 -2

No files matched your search

+2 -2
View File
@@ -158,8 +158,8 @@ jobs:
${{ runner.os }}-hugo-
- name: Run Pre-Build Scripts
shell: pwsh
run: ./scripts/add_draft_to_hidden.ps1
shell: bash
run: python3 scripts/add_draft_to_hidden.py
- name: Optimize Images
continue-on-error: true