ci: 砍掉构建里的多余动作
- fetch-depth: 0 → 默认浅克隆(没启用 enableGitInfo,Hugo 不读 git 历史) - submodules: recursive → true(只有 themes/stack 一层,无嵌套) - install → mv(二进制解压即可执行,不需要 chmod/chown)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user