I am trying to deploy a github.io blog but having an issue with build and deployment. I can build the files without any issue on local server, but when I try to publish it on github server by pushing it, it throws a build and deployment error saying:
Error: Error: No uploaded artifact was found!

Here's my git repo link for more info: https://github.com/dailyole/dailyole.github.io/runs/4677505925?check_suite_focus=true
I was able to publish the same files on github.io without an issue a few weeks ago, but it throws an error now.
In my case, I was just using an older version of the actions/deploy-pages@v4 action. I updated it to v4 and it worked. Please check the latest version in GH documentation and update accordingly.
In my case my problem was caused by some bad submodule references: https://github.com/catalin-hritcu/catalin-hritcu.github.io/actions/runs/1643762494
No url found for submodule path 'teaching/epit2018' in .gitmodules
This seems to be a common issue these days: https://github.community/t/failed-to-publish-static-site-spa-with-submodules/219880
It fixed it with some commands like this:
git rm --cached teaching/epit2018
This doesn't seem the problem for you though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With