diff --git a/Rakefile b/Rakefile index 12613be2..7f352395 100644 --- a/Rakefile +++ b/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| diff --git a/site/latest_version.txt b/site/latest_version.txt new file mode 100644 index 00000000..276cbf9e --- /dev/null +++ b/site/latest_version.txt @@ -0,0 +1 @@ +2.3.0