Skip to content

Commit eb4d5f8

Browse files
authored
Merge pull request #10 from github/push-both-gems
Allow releasing to both entitlements and entitlements-app gem names
2 parents 5b3f5d9 + c227c12 commit eb4d5f8

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

entitlements-app.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
Gem::Specification.new do |s|
4-
s.name = "entitlements-app"
4+
s.name = ENV['GEM_NAME'] ? ENV['GEM_NAME'] : 'entitlements-app'
55
s.version = File.read("VERSION").chomp
66
s.summary = "git-managed LDAP group configurations"
77
s.description = "The Ruby Gem that Powers Entitlements - GitHub's Identity and Access Management System"

script/release

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
1010
cd ${DIR}
1111

1212
# Build a new gem archive.
13+
rm -rf entitlements-*.gem
1314

14-
rm -rf entitlements-app-*.gem
15+
GEM_NAME='entitlements' gem build -q entitlements-app.gemspec
1516
gem build -q entitlements-app.gemspec
1617

1718
# Make sure we're on the main branch.
@@ -36,5 +37,6 @@ git fetch -t origin
3637

3738
# Tag it and bag it.
3839

39-
gem push entitlements-app-*.gem && git tag "$tag" &&
40-
git push origin main && git push origin "$tag"
40+
gem push entitlements-app-*.gem && rm -f entitlements-app-*.gem
41+
gem push entitlements-*.gem && rm -f entitlements-*.gem
42+
git tag "$tag" && git push origin main && git push origin "$tag"

0 commit comments

Comments
 (0)