peaceiris/actions-hugo

Build against incorrect Hugo Version

mwolfaardt opened this issue · 3 comments

Note that an issue which does not follow the template will be closed silently.

Describe the bug

In my yml file I specify the Hugo version to be 0.74.1 but when Github builds my static site it uses Hugo version 0.76.3 that causes the build to fail due to my theme not being compatible with the latest version.

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. In your YML change the property of hugo-version from "latest" to '0.74.1'
  2. Check in your files and create a build
  3. View the build output

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

image

Your YAML file

  • name: Setup Hugo
    uses: peaceiris/actions-hugo@v2.4.13
    with:
    #hugo-version: "latest"
    hugo-version: '0.74.1'

Additional context

none

You got the error in the "Build And Deploy to public" step. Please follow the instruction fo Azure/static-web-apps-deploy. You can use Hugo of the Azure/static-web-apps-deploy action.

Thank you, you are the best! added env to my yaml file and it worked!

This issue has been LOCKED because of it being resolved!

The issue has been fixed and is therefore considered resolved.
If you still encounter this or it has changed, open a new issue instead of responding to solved ones.