We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b306df commit f62f320Copy full SHA for f62f320
Rakefile
@@ -8,7 +8,7 @@ task test: :build do
8
end
9
10
task :deploy do
11
- current_tag = `git tag -l | sort -n | tail -n 1`.match(/\d+/)[0].to_i
+ current_tag = `git tag -l`.split(/\n/).map{|v|v=~/v(\d+)/;$1.to_i}.sort.last
12
next_tag = current_tag + 1
13
puts "Deploying tag #{next_tag}"
14
system("git tag v#{next_tag}")
0 commit comments