Github pages + git LFS

Hey, I’ve just enabled LFS on my repository following the instructions over on

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 |, I guess I need to change my github workflow file?

Maybe i need to do a git lfs pull?


According to this: actions/checkout: Action for checking out a repo (

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:

    runs-on: ubuntu-20.04
      - uses: actions/checkout@v2
          submodules: true # Fetch Hugo themes (true OR recursive)
          fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
          lfs: true # Fetches LFS data

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.