mirror of
https://github.com/scratchfoundation/jquery-timeago.git
synced 2024-11-23 15:57:54 -05:00
Added gh-pages rebase to the publish task
This commit is contained in:
parent
579b5c6f05
commit
911bd155b4
1 changed files with 10 additions and 5 deletions
15
Rakefile
15
Rakefile
|
@ -3,16 +3,21 @@ SETTINGS = {
|
||||||
:rsync_options => '-e ssh -avz --delete --exclude=.git'
|
:rsync_options => '-e ssh -avz --delete --exclude=.git'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
verbose(true)
|
||||||
|
|
||||||
task :default => :test
|
task :default => :test
|
||||||
|
|
||||||
desc 'Publish to server (edit Rakefile to config)'
|
desc 'Publish "marketing" docs'
|
||||||
task :publish do
|
task :publish do
|
||||||
cmd = "rsync #{SETTINGS[:rsync_options]} ./ #{SETTINGS[:rsync_server]}"
|
sh("git rebase master gh-pages")
|
||||||
puts "\nSyncing with server: #{cmd}\n\n"
|
sh("git checkout master")
|
||||||
system(cmd)
|
sh("git push")
|
||||||
|
sh("git push --tags")
|
||||||
|
|
||||||
|
sh("rsync #{SETTINGS[:rsync_options]} ./ #{SETTINGS[:rsync_server]}")
|
||||||
end
|
end
|
||||||
|
|
||||||
desc 'Open your default browser with the test page'
|
desc 'Open your default browser with the test page'
|
||||||
task :test do
|
task :test do
|
||||||
system("open test.html")
|
sh("open test.html")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue