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:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: true
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Install Hugo Extended
|
- name: Install Hugo Extended
|
||||||
run: |
|
run: |
|
||||||
HUGO_VERSION=0.161.1
|
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
|
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
|
hugo version
|
||||||
|
|
||||||
- name: Build site
|
- name: Build site
|
||||||
|
|||||||
Reference in New Issue
Block a user