rake/release: allow releases from *-stable branches.

This commit is contained in:
Parker Moore 2017-03-02 12:47:43 -05:00
parent 56dfe18c5d
commit e2cfd7cb4c
No known key found for this signature in database
GPG Key ID: 193CDEBA72063C58
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,8 @@
desc "Release #{name} v#{version}" desc "Release #{name} v#{version}"
task :release => :build do task :release => :build do
unless `git branch` =~ %r!^\* master$! current_branch = `git branch`.to_s.strip.match(%r!^\* (.+)$!)[1]
unless current_branch == "master" || current_branch.end_with?("-stable")
puts "You must be on the master branch to release!" puts "You must be on the master branch to release!"
exit! exit!
end end