Skip to content

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

@LucasPickering

Description

@LucasPickering

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions