Closed cchessnz closed 1 month ago
I have tried creating an Environment Variable under the SWA , HUGO_VERSION = 0.135.0 . However this causes no change; the build log still fails and says that it detected hugo version 0.112.5 .
I have found that I can work around the problem by adding env:
and HUGO_VERSION = 0.135.0
to the .yml
file under .github/workflows/
, instead of adding Environment Variables through the Azure Portal.
This means my site is now usable, although it'd still be good if the default behaviour is fixed or gives a useful message (there's no reason for it to say "detected 0.112.5" when I am not using that version).
Bug Report
At what date and time did you most recently experience the problem? 13 Oct 2024 12:20am NZDT
Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use. Azure Portal - deploying a Static Web App
If your repo is publicly available please share its URL:
What happened? I am trying to deploy a new Hugo application as Static Web App. However, the deployment failed. The log shows that Oryx detected the Hugo version as 0.112.5, however I am using version 0.135.0 . Then , deployment failed because the theme I am using, "Ananke", performs a version check and won't run on 0.112.5 .
What did you expect or want to happen? Expect successful deployment.
How can we reproduce it? Create a Hugo app via https://gohugo.io/getting-started/quick-start/ , with Ananke theme as shown on that page, , then deploy by exactly following the instructions at https://learn.microsoft.com/en-us/azure/static-web-apps/publish-hugo
Do you have log output? Please include between the backticks: