peaceiris / actions-hugo

GitHub Actions for Hugo ⚡️ Setup Hugo quickly and build your site fast. Hugo extended, Hugo Modules, Linux (Ubuntu), macOS, and Windows are supported.
https://github.com/marketplace/actions/hugo-setup
MIT License
1.41k stars 84 forks source link

support: Fails to download Hugo on Windows runners #637

Open bglw opened 1 year ago

bglw commented 1 year ago

Checklist

Describe your question

Hugo fails to install on Windows via this action, as the Windows release was renamed from Windows-64bit to windows-amd64 (See recent releases).

Relevant links

No relevant public link, but the action will hard error downloading any recent version of Hugo on Windows.

Relevant log output

Run peaceiris/actions-hugo@v2
  with:
    hugo-version: latest
    extended: true
  env:
    cwd: ./javascript-modules
Hugo version: 0.118.2
Error: Action failed with error Unexpected HTTP response: 404

Additional context.

N/A

zjwhitehead commented 11 months ago

I'm getting the same issue. I wonder what changed

frichtarik commented 8 months ago

this should fix it #643 they changed both format of architecture (everything lowercase, amd64 instead of 64Bit) and format of os names (everything lowercase, darwin instead of MacOS) strangely they left Linux-64Bit still amongst the assets, probably for some other projects that use legacy naming, i wonder when that will dissapear

change in archive naming was introduced in v0.103 https://github.com/gohugoio/hugo/releases/tag/v0.103.0