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 7
7
publish :
8
8
name : Publish
9
9
runs-on : ubuntu-latest
10
+ env :
11
+ TARGET_URL : https://pypi.org/project/patch-api/
10
12
steps :
11
13
- name : Check out code
12
14
uses : actions/checkout@v2
13
15
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
+
14
24
- name : Setup Python
15
25
uses : actions/setup-python@v2
16
26
with :
42
52
with :
43
53
user : __token__
44
54
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 15
15
16
16
from __future__ import absolute_import
17
17
18
- __version__ = "1.10.1 "
18
+ __version__ = "1.10.2 "
19
19
20
20
# import ApiClient
21
21
from patch_api .api_client import ApiClient
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ def __init__(
91
91
self .default_headers [header_name ] = header_value
92
92
self .cookie = cookie
93
93
# Set default User-Agent.
94
- self .user_agent = "patch-python/1.10.1 "
94
+ self .user_agent = "patch-python/1.10.2 "
95
95
96
96
def __del__ (self ):
97
97
if self ._pool :
Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ def to_debug_report(self):
341
341
"OS: {env}\n "
342
342
"Python Version: {pyversion}\n "
343
343
"Version of the API: v1\n "
344
- "SDK Package Version: 1.10.1 " .format (
344
+ "SDK Package Version: 1.10.2 " .format (
345
345
env = sys .platform , pyversion = sys .version
346
346
)
347
347
)
Original file line number Diff line number Diff line change 12
12
from setuptools import setup , find_packages # noqa: H301
13
13
14
14
NAME = "patch-api"
15
- VERSION = "1.10.1 "
15
+ VERSION = "1.10.2 "
16
16
# To install the library, run the following
17
17
#
18
18
# python setup.py install
You can’t perform that action at this time.
0 commit comments