From e4f249ace5053f982366b05f7eb11a6abcb34f4b Mon Sep 17 00:00:00 2001 From: Zhengchen Tao Date: Mon, 4 May 2026 01:11:48 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E7=A0=8D=E6=8E=89=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E9=87=8C=E7=9A=84=E5=A4=9A=E4=BD=99=E5=8A=A8=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - fetch-depth: 0 → 默认浅克隆(没启用 enableGitInfo,Hugo 不读 git 历史) - submodules: recursive → true(只有 themes/stack 一层,无嵌套) - install → mv(二进制解压即可执行,不需要 chmod/chown) --- .gitea/workflows/build.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 579b21c..9b763be 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -21,14 +21,13 @@ jobs: steps: - uses: actions/checkout@v4 with: - submodules: recursive - fetch-depth: 0 + submodules: true - name: Install Hugo Extended run: | HUGO_VERSION=0.161.1 curl -fsSL "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz" | tar -xz - install hugo /usr/local/bin/ + mv hugo /usr/local/bin/ hugo version - name: Build site