Create preview tarball from directory

Move the artifacts instead of copying to reduce waste
This commit is contained in:
zzak 2024-04-24 10:02:56 +09:00
parent 7c7e4c5476
commit 6be0b7f7f3
No known key found for this signature in database
GPG Key ID: 213927DFCF4FF102

@ -59,10 +59,12 @@ task :preview_docs do
require "guides/rails_guides"
Rake::Task[:rdoc].invoke
FileUtils.cp_r("doc/rdoc", "preview/api")
FileUtils.cp_r("guides/output", "preview/guides")
FileUtils.mv("doc/rdoc", "preview/api")
FileUtils.mv("guides/output", "preview/guides")
system("tar -czf preview.tar.gz preview")
Dir.chdir("preview") do
system("tar -czf preview.tar.gz .")
end
end
desc "Bump all versions to match RAILS_VERSION"