File tree Expand file tree Collapse file tree 5 files changed +32
-4
lines changed Expand file tree Collapse file tree 5 files changed +32
-4
lines changed Original file line number Diff line number Diff line change 77 publish :
88 name : Publish
99 runs-on : ubuntu-latest
10+ env :
11+ TARGET_URL : https://pypi.org/project/patch-api/
1012 steps :
1113 - name : Check out code
1214 uses : actions/checkout@v2
1315
16+ - uses : chrnorm/deployment-action@releases/v1
17+ name : Create GitHub deployment
18+ id : deployment
19+ with :
20+ token : " ${{ github.token }}"
21+ target_url : ${{ env.TARGET_URL }}
22+ environment : production
23+
1424 - name : Setup Python
1525 uses : actions/setup-python@v2
1626 with :
4252 with :
4353 user : __token__
4454 password : ${{ secrets.PYPI_API_TOKEN }}
55+
56+ - name : Update deployment status (success)
57+ if : success()
58+ uses : chrnorm/deployment-status@releases/v1
59+ with :
60+ token : " ${{ github.token }}"
61+ target_url : ${{ env.TARGET_URL }}
62+ state : " success"
63+ deployment_id : ${{ steps.deployment.outputs.deployment_id }}
64+
65+ - name : Update deployment status (failure)
66+ if : failure()
67+ uses : chrnorm/deployment-status@releases/v1
68+ with :
69+ token : " ${{ github.token }}"
70+ target_url : ${{ env.TARGET_URL }}
71+ state : " failure"
72+ deployment_id : ${{ steps.deployment.outputs.deployment_id }}
Original file line number Diff line number Diff line change 1515
1616from __future__ import absolute_import
1717
18- __version__ = "1.10.1 "
18+ __version__ = "1.10.2 "
1919
2020# import ApiClient
2121from patch_api .api_client import ApiClient
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ def __init__(
9191 self .default_headers [header_name ] = header_value
9292 self .cookie = cookie
9393 # Set default User-Agent.
94- self .user_agent = "patch-python/1.10.1 "
94+ self .user_agent = "patch-python/1.10.2 "
9595
9696 def __del__ (self ):
9797 if self ._pool :
Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ def to_debug_report(self):
341341 "OS: {env}\n "
342342 "Python Version: {pyversion}\n "
343343 "Version of the API: v1\n "
344- "SDK Package Version: 1.10.1 " .format (
344+ "SDK Package Version: 1.10.2 " .format (
345345 env = sys .platform , pyversion = sys .version
346346 )
347347 )
Original file line number Diff line number Diff line change 1212from setuptools import setup , find_packages # noqa: H301
1313
1414NAME = "patch-api"
15- VERSION = "1.10.1 "
15+ VERSION = "1.10.2 "
1616# To install the library, run the following
1717#
1818# python setup.py install
You can’t perform that action at this time.
0 commit comments