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:

1 Like

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
5 Likes

It worked. Thank you.

3 Likes

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

2 Likes

me too

Sorry, how do one update everything?

1 Like

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

Hi! How did you upgrade everything, please?

See my previous reply.

1 Like

Thanks a lot!! Totally saved me

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.