I am using the gem \"jekyll-assets\" on my site and it fails when pushing to github pages. I have read that a way around this is to build the site locally, which builds just
Here a windows batch file that pushes generated files back to github. Name it site_publish.bat and put it into the root of your project.
@echo off
cd /d "%~dp0"
rmdir _site /s /q
call jekyll build
git --git-dir=.git --work-tree=_site add --all
git --git-dir=.git --work-tree=_site commit -m "autogen: update site"
git --git-dir=.git --work-tree=_site push