File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33Gem ::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"
Original file line number Diff line number Diff line change @@ -10,8 +10,9 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
1010cd ${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
1516gem 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 "
You can’t perform that action at this time.
0 commit comments