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

Generated GitHub CI doesn't work with static assets in LFS #710

Open
LucasPickering opened this issue Sep 8, 2024 · 0 comments
Open

Generated GitHub CI doesn't work with static assets in LFS #710

LucasPickering opened this issue Sep 8, 2024 · 0 comments

Comments

@LucasPickering
Copy link

In my project Slumber, I have a demo gif that's stored in git LFS because it's updated very frequently. This gif is in the README, which means it's in the website too. Unfortunately Github Pages doesn't work out of the box with LFS, because the site isn't hosted directly from git. This means the gif isn't included in the static assets.

To make this work, I just had to add lfs: true to the checkout step, as suggested here. Here's the commit that fixed my site.

It'd be nice to have a config field to enable this in oranda. As it is, I'll have to remember to keep setting this flag any time I re-run oranda generate ci. One option is to enable it always, but that may make checkout very slow for repos that have large LFS assets that aren't needed in the website.

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