diff --git a/Gemfile b/Gemfile index a38ea59..ffe10f3 100644 --- a/Gemfile +++ b/Gemfile @@ -3,6 +3,7 @@ source 'https://rubygems.org' gem "middleman", "~>3.3.7" +gem "middleman-deploy" # Live-reloading plugin gem "middleman-livereload", "~> 3.1.0" diff --git a/Gemfile.lock b/Gemfile.lock index 0d9c9c9..18c0142 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -70,6 +70,10 @@ GEM rack-test (~> 0.6.2) thor (>= 0.15.2, < 2.0) tilt (~> 1.4.1, < 2.0) + middleman-deploy (1.0.0) + middleman-core (>= 3.2) + net-sftp + ptools middleman-livereload (3.1.1) em-websocket (>= 0.2.0) middleman-core (>= 3.0.2) @@ -82,12 +86,16 @@ GEM sprockets-sass (~> 1.3.0) minitest (5.5.1) multi_json (1.10.1) + net-sftp (2.1.2) + net-ssh (>= 2.6.5) + net-ssh (2.9.2) padrino-helpers (0.12.4) i18n (~> 0.6, >= 0.6.7) padrino-support (= 0.12.4) tilt (~> 1.4.1) padrino-support (0.12.4) activesupport (>= 3.1) + ptools (1.3.2) rack (1.6.0) rack-livereload (0.3.15) rack @@ -124,6 +132,7 @@ PLATFORMS DEPENDENCIES middleman (~> 3.3.7) + middleman-deploy middleman-livereload (~> 3.1.0) tzinfo-data wdm (~> 0.1.0) diff --git a/config.rb b/config.rb index 71d4478..4e6496c 100644 --- a/config.rb +++ b/config.rb @@ -72,3 +72,8 @@ configure :build do # Or use a different image path # set :http_prefix, "/Content/images/" end + +activate :deploy do |deploy| + deploy.method = :git + deploy.branch = 'gh-pages' +end