deploy-pages icon indicating copy to clipboard operation
deploy-pages copied to clipboard

"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

Open colinc1991 opened this issue 11 months ago • 6 comments

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)

Image

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.

Image

You can find the failing GH Actions workflow here: https://github.com/colinc1991/ShoppingCalc/actions/runs/13103111556/job/36553816180

colinc1991 avatar Feb 02 '25 22:02 colinc1991

Same issue here: https://github.com/cms-sw/cms-sw.github.io/actions/runs/13111568198/job/36576459260

iarspider avatar Feb 03 '25 10:02 iarspider

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 -

  1. deploy-pages
  2. upload-artifact
  3. configure-pages
  4. checkout

Link to failing deploy with the same message as OP - https://github.com/nirajpandkar/nirajpandkar.github.io/actions/runs/13132089251/job/36639271639

nirajpandkar avatar Feb 04 '25 09:02 nirajpandkar

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.

iarspider avatar Feb 04 '25 09:02 iarspider

I've also found that swapping to upload-pages-artifact@v3 gets the workflow to pass

colinc1991 avatar Feb 04 '25 19:02 colinc1991

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.

VehpuS avatar Mar 24 '25 21:03 VehpuS

Same here https://github.com/DanielLMcGuire/Mastering_Utility/actions/runs/18611421201/job/53070144112

DanielLMcGuire avatar Oct 18 '25 05:10 DanielLMcGuire