diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1898b33..b75aa9a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,6 +3,11 @@ on: release: types: [created] +permissions: + id-token: write # Required for OIDC + deployments: write + contents: read + jobs: publish: name: Publish @@ -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 @@ -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() diff --git a/Gemfile.lock b/Gemfile.lock index dcc67f5..ddea809 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - patch_ruby (2.6.0) + patch_ruby (2.6.1) typhoeus (~> 1.0, >= 1.0.1) GEM diff --git a/lib/patch_ruby/api_client.rb b/lib/patch_ruby/api_client.rb index 69d0170..6ff45aa 100644 --- a/lib/patch_ruby/api_client.rb +++ b/lib/patch_ruby/api_client.rb @@ -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 diff --git a/lib/patch_ruby/version.rb b/lib/patch_ruby/version.rb index 5b87bb4..a342604 100644 --- a/lib/patch_ruby/version.rb +++ b/lib/patch_ruby/version.rb @@ -11,5 +11,5 @@ =end module Patch - VERSION = '2.6.0' + VERSION = '2.6.1' end