Skip to content

Commit 911bd15

Browse files
committed
Added gh-pages rebase to the publish task
1 parent 579b5c6 commit 911bd15

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Rakefile

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,21 @@ SETTINGS = {
33
:rsync_options => '-e ssh -avz --delete --exclude=.git'
44
}
55

6+
verbose(true)
7+
68
task :default => :test
79

8-
desc 'Publish to server (edit Rakefile to config)'
10+
desc 'Publish "marketing" docs'
911
task :publish do
10-
cmd = "rsync #{SETTINGS[:rsync_options]} ./ #{SETTINGS[:rsync_server]}"
11-
puts "\nSyncing with server: #{cmd}\n\n"
12-
system(cmd)
12+
sh("git rebase master gh-pages")
13+
sh("git checkout master")
14+
sh("git push")
15+
sh("git push --tags")
16+
17+
sh("rsync #{SETTINGS[:rsync_options]} ./ #{SETTINGS[:rsync_server]}")
1318
end
1419

1520
desc 'Open your default browser with the test page'
1621
task :test do
17-
system("open test.html")
22+
sh("open test.html")
1823
end

0 commit comments

Comments
 (0)