mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
rework tasks to better integrate github release creation/tagging
This commit is contained in:
parent
6057070363
commit
bc71bedbdc
2 changed files with 7 additions and 9 deletions
15
Rakefile
15
Rakefile
|
@ -6,6 +6,12 @@ require 'rubygems/package_task'
|
|||
require 'yard'
|
||||
require File.dirname(__FILE__) + '/lib/fog'
|
||||
|
||||
require "tasks/changelog_task"
|
||||
Fog::Rake::ChangelogTask.new
|
||||
|
||||
require "tasks/github_release_task"
|
||||
Fog::Rake::GithubReleaseTask.new
|
||||
|
||||
#############################################################################
|
||||
#
|
||||
# Helper functions
|
||||
|
@ -160,12 +166,11 @@ end
|
|||
|
||||
task :git_mark_release do
|
||||
sh "git commit --allow-empty -a -m 'Release #{version}'"
|
||||
sh "git tag v#{version}"
|
||||
end
|
||||
|
||||
task :git_push_release do
|
||||
sh "git push origin master"
|
||||
sh "git push origin v#{version}"
|
||||
::Rake::Task[:github_release].invoke
|
||||
end
|
||||
|
||||
task :gem_push do
|
||||
|
@ -215,9 +220,3 @@ YARD::Rake::YardocTask.new do |t|
|
|||
t.files = ['lib/**/*.rb', "README"]
|
||||
t.options = ["--output-dir", YARDOC_LOCATION, "--title", "#{name} #{version}"]
|
||||
end
|
||||
|
||||
require "tasks/changelog_task"
|
||||
Fog::Rake::ChangelogTask.new
|
||||
|
||||
require "tasks/github_release_task"
|
||||
Fog::Rake::GithubReleaseTask.new
|
||||
|
|
|
@ -18,7 +18,6 @@ module Fog
|
|||
|
||||
add_commits_to_changelog
|
||||
save_changelog
|
||||
::Rake::Task[:github_release].invoke
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue