Build failed because it uses a deprecated version of `actions/upload-artifact: v3`

I am not able to build my website from today and I am getting this error:

This request has been automatically failed because it uses a deprecated version of actions/upload-artifact: v3. Learn more: Deprecation notice: v3 of the artifact actions - GitHub Changelog

Can someone help me regarding this issue?

Here is the link to my GitHub website:

If it were me, I’d try to upgrade everything and see what happens.

In .github/workflows/publish.yaml…

Old value New value
actions/cache@v3 actions/cache@v4
actions/configure-pages@v3 actions/configure-pages@v5
actions/deploy-pages@v2 actions/deploy-pages@v4
actions/upload-pages-artifact@v2 actions/upload-pages-artifact@v3
peaceiris/actions-hugo@v2 peaceiris/actions-hugo@v3

It worked. Thank you.

Thank you, I was trying to find a solution for 1.5 hours your answer finally helped!

me too

Sorry, how do one update everything?

Thank you for your contribution! It solved the problem perfectly!

Hi! How did you upgrade everything, please?

See my previous reply.

Thanks a lot!! Totally saved me