0.0
No commit activity in last 3 years
No release in over 3 years
gem to push a compiled jekyll site to a github branch
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.0

Runtime

> 3.0, < 4.0
~> 3.0
 Project Readme

JekyllPush

Build Status Gem Version Gem Downloads Maintainability Test Coverage docs License

Jekyll gem plugin to push a compiled Jekyll site to a GitHub branch. Works locally or on Travis CI if you add an access token to your Travis build. Great for keeping archived copies or getting to use Jekyll Plugins and still host on GitHub pages.

push pop gif

Installation

Add jekyll_push to your Jekyll sites's Gemfile within the :jekyll_plugins group:

group :jekyll_plugins do
 gem 'jekyll_push'
end

And then execute:

$ bundle

Make sure you also add jekyll_push as a plugin to your _config.yml file:

plugins:
 - jekyll_push

Usage

$ jekyll push <branch_name> or $ bundle exec jekyll push <branch_name>

Configuration

For GitHub pages

If you run jekyll push gh-pages to use GitHub pages publishing, JekyllPush will look for a repo_name variable in your _config.yml file and try to construct a baseurl from it.

For example, if you have a repository named my_site just add:

repo_name: my_site

to your _config.yml file and JekyllPush will rebuild your site using /my_site as the baseurl before pushing it to the gh-pages branch. This lets you use JekyllPush for multiple branches and publish targets, with differing (base)url patterns.

When run locally

[ TO DO ]

When run via Travis-CI

[ TO DO ]

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/mnyrop/jekyll_push. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the JekyllPush project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.