Add latest_version.txt file to the site.
This commit is contained in:
parent
a97659a4a1
commit
7c266e0fb9
7
Rakefile
7
Rakefile
|
@ -160,7 +160,7 @@ namespace :site do
|
|||
end
|
||||
|
||||
desc "Commit the local site to the gh-pages branch and publish to GitHub Pages"
|
||||
task :publish => [:history] do
|
||||
task :publish => [:history, :version_file] do
|
||||
# Ensure the gh-pages dir exists so we can generate into it.
|
||||
puts "Checking for gh-pages dir..."
|
||||
unless File.exist?("./gh-pages")
|
||||
|
@ -215,6 +215,11 @@ namespace :site do
|
|||
end
|
||||
end
|
||||
|
||||
desc "Write the site latest_version.txt file"
|
||||
task :version_file do
|
||||
File.open('site/latest_version.txt', 'wb') { |f| f.write(version) }
|
||||
end
|
||||
|
||||
namespace :releases do
|
||||
desc "Create new release post"
|
||||
task :new, :version do |t, args|
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
2.3.0
|
Loading…
Reference in New Issue