🔧 Chore: use environment variable HUGO_VERSION to control Hugo version

This commit is contained in:
Cell
2024-12-17 18:11:37 +08:00
parent 9614598f07
commit 0e7dc99319
+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: latest
hugo-version: ${{ vars.HUGO_VERSION || 'latest' }}
extended: true
- name: Build Hugo static files
run: hugo --source=demo --gc --minify --logLevel info