No commit activity in last 3 years
No release in over 3 years
Middleman deploy to GitHub that just works.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.11
~> 10.0
 Project Readme

Middleman::GhPages

Middleman deploy to GitHub that just works.

Installation

Add this line to your application's Gemfile:

gem 'middleman-gh_pages'

Or install it yourself as:

$ gem install middleman-gh_pages

Usage

Add the following to your middleman config.rb file:

activate :gh_pages do |gh_pages|
  gh_pages.remote = 'git@github.com:an_absolute/github_remote_name.git'
end

Adding an absolute remote name is a requirement, so we don't have to infer where to deploy to.

The deploy is always one commit that is forced pushed into the gh-pages branch. You'll never run into merge conflicts, or an unemployable state. You can deploy anything, as long as you can force push to gh-pages.

You can also deploy uncommitted changes as a new deploy commit is created on every run of:

$ middleman gh_pages

Hooray! 🎉

If you need to push to different branch than gh-pages you can specify that with:

activate :gh_pages do |gh_pages|
  gh_pages.remote = 'git@github.com:an_absolute/github_remote_name.git'
  gh_pages.branch = 'master'
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/gsamokovarov/middleman-gh_pages. 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.