Skip to content

Commit

Permalink
Chore: 使用环境变量 HUGO_VERSION 控制 Hugo 版本
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Dec 17, 2024
1 parent 7494845 commit 5d3727a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: latest
# use the environment variable HUGO_VERSION as the hugo version, if not set, use `latest`.
hugo-version: ${{ vars.HUGO_VERSION || 'latest' }}
extended: true
- name: Hugo build
run: hugo --gc --minify --logLevel info
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/update-theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: latest
# use the environment variable HUGO_VERSION as the hugo version, if not set, use `latest`.
hugo-version: ${{ vars.HUGO_VERSION || 'latest' }}
extended: true

- name: Update theme
Expand Down

0 comments on commit 5d3727a

Please sign in to comment.