diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ceef9ee..03d1321 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,10 +7,20 @@ jobs: publish: name: Publish runs-on: ubuntu-latest + env: + TARGET_URL: https://pypi.org/project/patch-api/ 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 Python uses: actions/setup-python@v2 with: @@ -42,3 +52,21 @@ jobs: with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} + + - 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 }} diff --git a/.gitignore b/.gitignore index fed4f8f..46a0e78 100644 --- a/.gitignore +++ b/.gitignore @@ -64,4 +64,7 @@ target/ #Ipython Notebook .ipynb_checkpoints -git_push.sh +# Ignore openapi-generator artifacts +.openapi-generator-ignore +/.openapi-generator/ +git_push.sh \ No newline at end of file diff --git a/patch_api/__init__.py b/patch_api/__init__.py index 3007435..cf04d77 100644 --- a/patch_api/__init__.py +++ b/patch_api/__init__.py @@ -15,7 +15,7 @@ from __future__ import absolute_import -__version__ = "1.10.1" +__version__ = "1.10.2" # import ApiClient from patch_api.api_client import ApiClient diff --git a/patch_api/api_client.py b/patch_api/api_client.py index 2ed56b9..5491af4 100644 --- a/patch_api/api_client.py +++ b/patch_api/api_client.py @@ -91,7 +91,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "patch-python/1.10.1" + self.user_agent = "patch-python/1.10.2" def __del__(self): if self._pool: diff --git a/patch_api/configuration.py b/patch_api/configuration.py index 17f24dd..4125799 100644 --- a/patch_api/configuration.py +++ b/patch_api/configuration.py @@ -341,7 +341,7 @@ def to_debug_report(self): "OS: {env}\n" "Python Version: {pyversion}\n" "Version of the API: v1\n" - "SDK Package Version: 1.10.1".format( + "SDK Package Version: 1.10.2".format( env=sys.platform, pyversion=sys.version ) ) diff --git a/setup.py b/setup.py index 5b842e8..c19de72 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "patch-api" -VERSION = "1.10.1" +VERSION = "1.10.2" # To install the library, run the following # # python setup.py install