This is a simple shell script for building a Jekyll site and deploying it to GitHub. If you prefer to build your site locally and push up the resulting files, this makes that possible with a single command.
git push origin master
needs a place to go.source
._site
folder. This is the default, so just don't mess with it.Put a file in your Pages repository called config
.
In that file, you can set the source branch and the destination branch for the Jekyll build.
Format the config file like this:
SOURCE: source-branch-name
SITE: destination-branch-name
The SOURCE:
and SITE:
part have to be there, you can change the names of the branches all you want.
If you choose not to use a config file, the defaults will be source
and master
.
If you DO have a config file, both lines must be there and must be filled in with branch names.
jekyll tmp_dir
to build the site files to a temporary folder;tmp_dir
to the destination branch;So so much.
~/bin/blogdeploy/config-parser.sh
path in there, which is dumb..sh
files that this uses. It would be cool to have a script/bootstrap
command that would load all this stuff up in the right places so you don't have to worry about that crap.