actions / deploy-pages

GitHub Action to publish artifacts to GitHub Pages for deployments
https://pages.github.com
MIT License
663 stars 79 forks source link

Artifact could not be deployed; no symlinks or hard links, small size #331

Closed liam-strand closed 7 months ago

liam-strand commented 7 months ago

Hello there!

I am attempting to use Github Pages to host my Rust documentation created with cargo doc. The CI system builds the documentation then uses actions/upload-pages-artifact@v3 to upload the artifact, then uses actions/deploy-pages@v4 to deploy it.

The documentation builds correctly (I can manually download the artifact and examine it), but the deployment fails with:

Error: Artifact could not be deployed. Please ensure the content does not contain any hard links, symlinks and total size is less than 10GB.

I verified that the artifact contains no symlinks or hard links, and is far less than 10GB. I may have missed something, however. I have attached the workflow and the resulting artifact, and the project is hosted at https://github.com/sgilfeather/CyberGrape if you are interested in that.

Thank you so much in advance for your help!

Best, Liam

rust2.yml github-pages.zip

liam-strand commented 7 months ago

Ah, I found #303 and it works for me!