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.37k stars 80 forks source link

proposal: update node to a more recent version #642

Closed retorquere closed 3 months ago

retorquere commented 5 months ago

Checklist

Describe your proposal

update node to a more recent version. GHA is reporting that node 16 actions are deprecated

Describe the solution you'd like

An update to a newer node version

Describe alternatives you've considered

Manually installing hugo

Additional context

None

tohn commented 5 months ago

Got this warning as well:

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: peaceiris/actions-hugo@v2.6.0. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

I think https://github.com/peaceiris/actions-hugo/pull/641 does exactly that? And https://github.com/peaceiris/actions-hugo/pull/614 is obsolete now 😉

retorquere commented 5 months ago

I think https://github.com/peaceiris/actions-hugo/pull/641 does exactly that?

Seems like it does.

daviddavo commented 4 months ago

But we still need a release so github action's picks it up automatically

jesseadams commented 4 months ago

@peaceiris Can we please get a new release?

ricomariani commented 4 months ago

UPDATE: peaceiris/actions-hugo@v3 is now available, do not use the workaround below.

Lacking a release and with the deadline looming I made a fork and published a release with the release.sh script:

I am now able to do this:

uses: ricomariani/actions-hugo@sha-deleted-for-your-safety-use-the-release-above

This works for me but it won't be maintained further. If you're stuck you can use it. I don't know if there are known bugs in 'main' on the maintained branch but if main is good enough for you there's a published release now.

peaceiris commented 3 months ago

https://github.com/peaceiris/actions-hugo/issues/647#issuecomment-2031002966

ricomariani commented 3 months ago

peaceiris/actions-hugo@v3 is working for me. I removed the SHA in my comment above so nobody will use it by accident. I will likely delete my fork in a few weeks just in case someone is still using the workaround SHA.

peaceiris commented 3 months ago

Thank you so much @ricomariani!

github-actions[bot] commented 3 months ago

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.

Log | Bot Usage