diff options
author | John Cai <jcai@gitlab.com> | 2020-03-12 23:46:05 +0300 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2020-03-13 04:45:35 +0300 |
commit | 8f8033f11ec343a2314644479134d33852955044 (patch) | |
tree | bdb17ddf1ec0e720963d4bdfafd3f09d30982ca0 | |
parent | 65afbb65c1aad1bd082f3e896519da36eef4ec52 (diff) |
fix gem publish script to handle prerelease gem name
When a tag with -rc* is published, gem build will insert a ".pre" into
the gem file name. The script does not expect this. This will fix that.
-rwxr-xr-x | _support/publish-gem | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/_support/publish-gem b/_support/publish-gem index b2256814f..f0a1b138e 100755 --- a/_support/publish-gem +++ b/_support/publish-gem @@ -20,8 +20,8 @@ def main(tag) puts 'Testing for staged changes' run!(%w[git diff --quiet --cached --exit-code]) - run!(%w[gem build gitaly.gemspec]) gem = "gitaly-#{version}.gem" + run!(['gem', 'build', 'gitaly.gemspec', '--output', gem]) abort "gem not found: #{gem}" unless File.exist?(gem) puts "Proceed to publish version #{tag}? Enter 'Yes' to continue; Ctrl-C to abort" |