mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Push the guides
This commit is contained in:
parent
dfef3d8b14
commit
713b9c6a1b
1 changed files with 6 additions and 3 deletions
|
@ -344,9 +344,12 @@ task :pgem => [:gem] do
|
|||
`ssh gems.rubyonrails.org '/u/sites/gems/gemupdate.sh'`
|
||||
end
|
||||
|
||||
desc "Publish the API documentation"
|
||||
task :pdoc => :rdoc do
|
||||
# railties API isn't separately published
|
||||
desc "Publish the guides"
|
||||
task :pguides => :guides do
|
||||
mkdir_p 'pkg'
|
||||
`tar -czf pkg/guides.gz guides/output`
|
||||
Rake::SshFilePublisher.new("web.rubyonrails.org", "/u/sites/guides.rubyonrails.org/public", "pkg", "guides.gz").upload
|
||||
`ssh web.rubyonrails.org 'cd /u/sites/guides.rubyonrails.org/public/ && tar -xvzf guides.gz && mv guides/output/* . && rm -rf guides*'`
|
||||
end
|
||||
|
||||
desc "Publish the release files to RubyForge."
|
||||
|
|
Loading…
Reference in a new issue