Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache hugo modules during build #42

Closed
3 tasks done
UnamedRus opened this issue Jul 25, 2022 · 0 comments
Closed
3 tasks done

cache hugo modules during build #42

UnamedRus opened this issue Jul 25, 2022 · 0 comments

Comments

@UnamedRus
Copy link
Contributor

UnamedRus commented Jul 25, 2022

It takes ~16s out of 23s in Build stage to get modules.

https://github.com/peaceiris/actions-hugo#%EF%B8%8F-caching-hugo-modules

  • Cache Hugo modules (observing)

May be we also can improve git checkout speed? (33s now)

Looks like node_modules is main contributor in git checkout slowdown.

  • Remove node modules from repo and use cache for them as well.

  • Figure out better way of storing rendered pages in repo. (force_orphan: true option)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant