Use local hugo bin
Some checks failed
Build and Deploy Qingshuige / build-deploy (push) Has been cancelled

This commit is contained in:
2026-02-03 02:43:46 +08:00
parent 2154c9359e
commit 1297ae5722

View File

@@ -11,16 +11,10 @@ jobs:
steps:
- name: Checkout source
run: |
git clone ${GITEA_REPOSITORY_URL} repo
cd repo
uses: actions/checkout@v4
- name: Install Hugo
- name: Test Hugo
run: |
HUGO_VERSION=0.155.1
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz
tar -xzf hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz
sudo mv hugo /usr/local/bin/
hugo version
- name: Build Hugo site