Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ on:
release:
types: [created]

permissions:
id-token: write # Required for OIDC
deployments: write
contents: read

jobs:
publish:
name: Publish
Expand All @@ -23,12 +28,9 @@ jobs:
environment: production

- name: Setup Ruby
uses: ruby/setup-ruby@1a615958ad9d422dd932dc1d5823942ee002799f # v1.227.0
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.1

- name: Build Gem
run: gem build -o patch_ruby.gem patch_ruby.gemspec
ruby-version: 3.4.3

- name: Install Ruby Dependencies
run: bundle install
Expand All @@ -38,10 +40,7 @@ jobs:
SANDBOX_API_KEY: ${{ secrets.SANDBOX_API_KEY }}
run: bundle exec rspec

- name: Push to RubyGems
env:
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
run: gem push patch_ruby.gem
- uses: rubygems/release-gem@v1

- name: Update deployment status (success)
if: success()
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
patch_ruby (2.6.0)
patch_ruby (2.6.1)
typhoeus (~> 1.0, >= 1.0.1)

GEM
Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ApiClient
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
def initialize(config = Configuration.default)
@config = config
@user_agent = "patch-ruby/2.6.0"
@user_agent = "patch-ruby/2.6.1"
@default_headers = {
'Content-Type' => 'application/json',
'User-Agent' => @user_agent
Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
=end

module Patch
VERSION = '2.6.0'
VERSION = '2.6.1'
end