mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-31 09:48:30 -05:00
Merge pull request #2740 from jekyll/latest-version
This commit is contained in:
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|
|
||||
|
||||
1
site/latest_version.txt
Normal file
1
site/latest_version.txt
Normal file
@@ -0,0 +1 @@
|
||||
2.3.0
|
||||
Reference in New Issue
Block a user