Skip to content

Commit

Permalink
workflows/hugo: pin hugo version to previous release
Browse files Browse the repository at this point in the history
The latest (0.139.5) release does not include all release assets, which
means that peaceiris/actions-hugo fails when attempting to use `latest`.
Pin it to the previous release instead, as instructed by Hugo's release
notes.

See also:
  peaceris/actions-hugo#652
  gohugoio/hugo#13147

Signed-off-by: Luca Zeuch <[email protected]>
  • Loading branch information
l-zeuch committed Dec 16, 2024
1 parent 7f4a3b1 commit c8a8a29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
- name: Install Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: latest
# FIXME: At the moment, the 0.139.5 release does not include all assets,
# which fails this specific step. We use the previous version instead.
hugo-version: '0.139.4'
# We use the extended version just to be on the safe side.
# It is recommended anyway.
extended: true
Expand Down

0 comments on commit c8a8a29

Please sign in to comment.