File tree Expand file tree Collapse file tree 2 files changed +35
-6
lines changed
Expand file tree Collapse file tree 2 files changed +35
-6
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ name: CI
22on :
33 push :
44 branches-ignore :
5- - ' generated'
6- - ' codegen/**'
7- - ' integrated/**'
8- - ' stl-preview-head/**'
9- - ' stl-preview-base/**'
5+ - " generated"
6+ - " codegen/**"
7+ - " integrated/**"
8+ - " stl-preview-head/**"
9+ - " stl-preview-base/**"
1010
1111jobs :
1212 lint :
4040
4141 - name : Run tests
4242 run : ./scripts/test
43+
44+ publish :
45+ timeout-minutes : 10
46+ name : publish gem
47+ runs-on : ${{ github.repository == 'stainless-sdks/brand.dev-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
48+ needs : [lint, test]
49+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
50+
51+ steps :
52+ - uses : actions/checkout@v4
53+ - name : Set up Ruby
54+ uses : ruby/setup-ruby@v1
55+ with :
56+ bundler-cache : false
57+ - run : |-
58+ bundle install
59+
60+ - name : Build gem
61+ run : gem build brand_dev.gemspec
62+
63+ - name : Publish gem to RubyGems
64+ env :
65+ GEM_HOST_API_KEY : ${{ secrets.PUSH_GEM_API_KEY }}
66+ run : |
67+ mkdir -p ~/.gem
68+ echo ":rubygems_api_key: $GEM_HOST_API_KEY" > ~/.gem/credentials
69+ chmod 0600 ~/.gem/credentials
70+ gem push brand.dev-*.gem
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Gem::Specification.new do |s|
99 s . authors = [ "Brand Dev" ]
1010 s . email = ""
1111 s . homepage = "https://gemdocs.org/gems/brand.dev"
12+ s . license = "Apache-2.0"
1213 s . metadata [ "homepage_uri" ] = s . homepage
1314 s . metadata [ "source_code_uri" ] = "https://github.com/stainless-sdks/brand.dev-ruby"
1415 s . metadata [ "rubygems_mfa_required" ] = false . to_s
@@ -24,5 +25,5 @@ Gem::Specification.new do |s|
2425 ".ignore"
2526 ]
2627 s . extra_rdoc_files = [ "README.md" ]
27- s . add_dependency "connection_pool"
28+ s . add_dependency "connection_pool" , "~> 2.2"
2829end
You can’t perform that action at this time.
0 commit comments