Build against incorrect Hugo Version
mwolfaardt opened this issue · 3 comments
mwolfaardt commented
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:
- In your YML change the property of hugo-version from "latest" to '0.74.1'
- Check in your files and create a build
- View the build output
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Your YAML file
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2.4.13
with:
#hugo-version: "latest"
hugo-version: '0.74.1'- name: Build
working-directory: 'blog/cupofdev'
run: hugo - name: Build And Deploy to public
id: builddeploy
uses: Azure/static-web-apps-deploy@v0.0.1-preview
- name: Build
Additional context
none
peaceiris commented
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.
mwolfaardt commented
Thank you, you are the best! added env to my yaml file and it worked!
github-actions commented