0.0
No release in over 3 years
Low commit activity in last 3 years
Automated deployment to GitHub pages
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

< 2.0, >= 1.5.0
~> 3.1

Runtime

>= 0
~> 0.18
 Project Readme

StaticDeploy

Gem Version Build Status

Rake tasks to ease publishing a static website via git to a remote repository (e.g. GitHub pages).

Installation

Add this line to your application's Gemfile:

gem 'static_deploy'

And then execute:

$ bundle

Or install it yourself as:

$ gem install static_deploy

Usage

In Rakefile add the following:

require 'static_deploy'

ENV['GENERATOR'] = 'jekyll'  # => static website generator executable
ENV['COMMAND']   = 'build'   # => command for building a project, defaults to 'build'

When deploying inside the current repository, git defaults are used to get username and repository name:

bundle exec rake site:publish

Otherwise, to publish to remote branch in the different repository do:

bundle exec rake site:publish["username/repository"]

As a convenience you may want to add the following rake task to your Rakefile:

desc 'publish this site'
task :publish do
  Rake::Task['site:publish'].invoke("username/repository")
end

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Code of Conduct

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

Copyright

Copyright (c) 2013 Piotr Murach. See LICENSE for further details.