"Artifact could not be deployed. Please ensure the content does not contain any hard links, symlinks and total size is less than 10GB." yet everything looks fine
When deploying my Angular web app to GitHub Pages using actions/deploy-pages@v4 I get an error: Error: Artifact could not be deployed. Please ensure the content does not contain any hard links, symlinks and total size is less than 10GB. (screenshot below)
I have added steps in the workflow to ensure there are no hard links or symlinks and also to ensure the total artifact size is less than 10GB (see below screenshot) so I'm puzzled at what is going wrong here. My workflow was working fine when I was using v1 but since the deprecation I have since moved over to v4.
You can find the failing GH Actions workflow here: https://github.com/colinc1991/ShoppingCalc/actions/runs/13103111556/job/36553816180
Same issue here: https://github.com/cms-sw/cms-sw.github.io/actions/runs/13111568198/job/36576459260
EDIT: It works with "actions/upload-pages-artifact@v3"! So weird.
Same issue after the upgrade to v4. I have upgraded all the versions to v4 -
- deploy-pages
- upload-artifact
- configure-pages
- checkout
Link to failing deploy with the same message as OP - https://github.com/nirajpandkar/nirajpandkar.github.io/actions/runs/13132089251/job/36639271639
EDIT: It works with "actions/upload-pages-artifact@v3"! So weird.
I came to the same conclusion. Looks like upload-artifact produces filename.zip, and this action wants filename.tgz.
I've also found that swapping to upload-pages-artifact@v3 gets the workflow to pass
I also encountered this issue and solved it by switching to upload-pages-artifact@v3, in case you choose to improve the error message, here's the relevant repo: https://github.com/VehpuS/singing-synthesis
Notice I added steps to check for simlinks / hardlinks / artifact size.
Same here https://github.com/DanielLMcGuire/Mastering_Utility/actions/runs/18611421201/job/53070144112