Hey, I’ve just enabled LFS on my repository following the instructions over on Forestry.io.
My site worked fine locally, however when I deploy to github pages all my LFS content is missing.
I followed Hugo’s instructions (Host on GitHub | gohugo.io), I guess I need to change my github workflow file?
Maybe i need to do a git lfs pull?
Thanks
Ohhh,
According to this: actions/checkout: Action for checking out a repo (github.com)
Maybe I just need to add lfs: true as a flag in my checkout, I’ll try that and report back…
Yep that worked, so my workflow gh-pages includes this line:
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
lfs: true # Fetches LFS data
...