Add latest_version.txt file to the site.

This commit is contained in:
Parker Moore 2014-08-13 01:17:14 -04:00
parent a97659a4a1
commit 7c266e0fb9
2 changed files with 7 additions and 1 deletions

View File

@ -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|

1
site/latest_version.txt Normal file
View File

@ -0,0 +1 @@
2.3.0