axodotdev / axodotdev/oranda

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

Open
#710 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
543
Forks
34
PR merge metrics
No merged PRs in 30d

Description

In my project [Slumber](https://github.com/LucasPickering/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](https://github.com/orgs/community/discussions/50337#discussioncomment-5349819). Here's [the commit that fixed my site](https://github.com/LucasPickering/slumber/commit/0860d51966083a4f451179377dc5377d499aee26).

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.