diff options
author | John Cai <jcai@gitlab.com> | 2019-09-10 19:23:30 +0300 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2019-09-10 19:23:30 +0300 |
commit | 34b292442f0c2cd6a9e4a69b33b151e65243d32b (patch) | |
tree | aecacb0c618da407a3d2cd2ec2e3633d7f1dbe2d /_support/publish | |
parent | c013d9f144d1d288fed054d0541241b4c6d3bdcc (diff) |
Fix publish script
Diffstat (limited to '_support/publish')
-rwxr-xr-x | _support/publish | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/_support/publish b/_support/publish index 50a2808b0..c30c37804 100755 --- a/_support/publish +++ b/_support/publish @@ -19,11 +19,12 @@ def main(tag) abort "Git remote 'origin' must match #{REMOTE_REGEX}, got #{remote.inspect}" end - unless version.match?(/v\d+\.\d+\.\d+/) + version = tag.sub(/^v/, '') + + unless version.match?(/\d+\.\d+\.\d+/) abort "Version string #{version.inspect} does not look like a Gitaly Release tag (e.g. \"v1.0.2\"). Aborting." end - version = tag.sub(/^v/, '') gem = "gitaly-#{version}.gem" abort "gem not found: #{gem}" unless File.exist?(gem) |