Merge pull request #5926 from jekyll/allow-releases-from-stable-branches

Merge pull request 5926
This commit is contained in:
jekyllbot 2017-03-06 20:59:57 -05:00 committed by GitHub
commit c4f82f176d
2 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,7 @@ branches:
only: only:
- master - master
- themes - themes
- /*-stable/
notifications: notifications:
slack: slack:

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