diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2b0e7d5..32de1a9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,10 +7,21 @@ jobs: publish: name: Publish runs-on: ubuntu-latest + env: + TARGET_URL: https://rubygems.org/gems/patch_ruby + steps: - name: Check out code uses: actions/checkout@v2 + - uses: chrnorm/deployment-action@releases/v1 + name: Create GitHub deployment + id: deployment + with: + token: "${{ github.token }}" + target_url: ${{ env.TARGET_URL }} + environment: production + - name: Setup Ruby uses: ruby/setup-ruby@v1 with: @@ -32,3 +43,20 @@ jobs: GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }} run: gem push patch_ruby.gem + - name: Update deployment status (success) + if: success() + uses: chrnorm/deployment-status@releases/v1 + with: + token: "${{ github.token }}" + target_url: ${{ env.TARGET_URL }} + state: "success" + deployment_id: ${{ steps.deployment.outputs.deployment_id }} + + - name: Update deployment status (failure) + if: failure() + uses: chrnorm/deployment-status@releases/v1 + with: + token: "${{ github.token }}" + target_url: ${{ env.TARGET_URL }} + state: "failure" + deployment_id: ${{ steps.deployment.outputs.deployment_id }} \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 79a1657..015dd7b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - patch_ruby (1.10.1) + patch_ruby (1.10.2) typhoeus (~> 1.0, >= 1.0.1) GEM @@ -22,7 +22,7 @@ GEM ffi (>= 1.15.0) factory_bot (6.2.0) activesupport (>= 5.0.0) - ffi (1.15.3) + ffi (1.15.4) i18n (1.8.10) concurrent-ruby (~> 1.0) jaro_winkler (1.5.4) diff --git a/lib/patch_ruby/api_client.rb b/lib/patch_ruby/api_client.rb index bb841c4..5a0aaa3 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/1.10.1" + @user_agent = "patch-ruby/1.10.2" @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 eb53c31..88ff784 100644 --- a/lib/patch_ruby/version.rb +++ b/lib/patch_ruby/version.rb @@ -11,5 +11,5 @@ =end module Patch - VERSION = '1.10.1' + VERSION = '1.10.2' end