jeffreytse / jekyll-deploy-action

🪂 A Github Action to deploy the Jekyll site conveniently for GitHub Pages.
MIT License
344 stars 47 forks source link

Site not building with a submodule referenced in _config.yaml file #92

Closed pschloss closed 1 month ago

pschloss commented 1 month ago

I have a submodule (resources/) as part of my Jekyll repo that is referenced in the _config.yaml file:

layouts_dir: /resources/_layouts
includes_dir: /resources/_includes
sass:
  sass_dir: /resources/_sass
  style: compressed

Unfortunately when the jekyll-deploy-action runs, it does not seem to be building with the submodule. The rendered site is not getting the styling that I had been getting when building off of the master branch with the submodule. It should look a lot more like the rest of the site, which is styled using the sass files in resources/.

Any ideas what I might be missing to get the site to build using resources/?

pschloss commented 1 month ago

Of course I managed to figure it out after posting the issue - sorry! I modified the actions/checkout step of the workflow to add submodules: true like below...

...
    steps:
      - uses: actions/checkout@v4
        with:
          submodules: true
...