Skip to content

Commit f62f320

Browse files
committed
update deploy to handle versioning
1 parent 3b306df commit f62f320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ task test: :build do
88
end
99

1010
task :deploy do
11-
current_tag = `git tag -l | sort -n | tail -n 1`.match(/\d+/)[0].to_i
11+
current_tag = `git tag -l`.split(/\n/).map{|v|v=~/v(\d+)/;$1.to_i}.sort.last
1212
next_tag = current_tag + 1
1313
puts "Deploying tag #{next_tag}"
1414
system("git tag v#{next_tag}")

0 commit comments

Comments
 (0)