Skip to content

Commit 9184972

Browse files
committed
Swap middleman-deploy for middleman-gh-pages
What a dumpster fire.
1 parent 7a0d710 commit 9184972

File tree

5 files changed

+10
-28
lines changed

5 files changed

+10
-28
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ gem 'sass', '~> 3.4.0'
55
gem 'jquery-middleman', require: false
66
gem 'zurb-foundation', '~> 4.3.2', require: false
77
gem 'middleman', '~> 3.4.1'
8-
gem 'middleman-deploy', '~> 1.0'
8+
gem 'middleman-gh-pages'
99
gem 'builder'
1010
gem 'sitemap_generator'
1111
gem 'coffee-script'

Gemfile.lock

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ GEM
7676
rack (>= 1.4.5, < 2.0)
7777
thor (>= 0.15.2, < 2.0)
7878
tilt (~> 1.4.1, < 2.0)
79-
middleman-deploy (1.0.0)
80-
middleman-core (>= 3.2)
81-
net-sftp
82-
ptools
79+
middleman-gh-pages (0.3.1)
80+
rake (> 0.9.3)
8381
middleman-sprockets (3.5.0)
8482
middleman-core (>= 3.3)
8583
sprockets (~> 2.12.1)
@@ -91,9 +89,6 @@ GEM
9189
mini_portile2 (2.3.0)
9290
minitest (5.11.3)
9391
multi_json (1.13.1)
94-
net-sftp (2.1.2)
95-
net-ssh (>= 2.6.5)
96-
net-ssh (4.2.0)
9792
nokogiri (1.8.2)
9893
mini_portile2 (~> 2.3.0)
9994
padrino-helpers (0.12.8.1)
@@ -102,7 +97,6 @@ GEM
10297
tilt (~> 1.4.1)
10398
padrino-support (0.12.8.1)
10499
activesupport (>= 3.1)
105-
ptools (1.3.5)
106100
puma (1.6.3)
107101
rack (~> 1.2)
108102
pygments.rb (1.2.1)
@@ -156,7 +150,7 @@ DEPENDENCIES
156150
icalendar
157151
jquery-middleman
158152
middleman (~> 3.4.1)
159-
middleman-deploy (~> 1.0)
153+
middleman-gh-pages
160154
nokogiri
161155
puma (~> 1.6.3)
162156
pygments.rb

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,8 @@ You will see the generated HTML & CSS by navigating to <http://localhost:4567/>.
4949
Deployment
5050
----------
5151

52-
Deployment happens automatically upon every push to the `master` branch via GitHub Pages.
52+
To the deploy the page, run the following rake commands, which will push the
53+
HTML build onto the `gh-pages` branch:
54+
55+
bundle exec rake build
56+
bundle exec rake publish

Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require 'bundler/setup'
22
require 'psych'
33
require 'yaml'
4+
require 'middleman-gh-pages'
45

56
namespace :assets do
67
task :precompile do

config.rb

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,6 @@
6262

6363
set :images_dir, 'images'
6464

65-
# Github Pages
66-
activate :deploy do |deploy|
67-
deploy.method = :git
68-
# remote is optional (default is "origin")
69-
# run `git remote -v` to see a list of possible remotes
70-
deploy.remote = "origin"
71-
72-
# branch is optional (default is "gh-pages")
73-
# run `git branch -a` to see a list of possible branches
74-
deploy.branch = "gh-pages"
75-
76-
# strategy is optional (default is :force_push)
77-
deploy.strategy = :force_push
78-
79-
deploy.build_before = true
80-
end
81-
8265
# Build-specific configuration
8366
configure :build do
8467
# For example, change the Compass output style for deployment

0 commit comments

Comments
 (0)