Skip to content

Commit 98a622c

Browse files
authored
Switch to trusted publisher (#84)
* Use trusted publisher * Bump version
1 parent dd0327a commit 98a622c

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@ on:
33
release:
44
types: [created]
55

6+
permissions:
7+
id-token: write # Required for OIDC
8+
deployments: write
9+
contents: read
10+
611
jobs:
712
publish:
813
name: Publish
14+
environment: production
915
runs-on: ubuntu-latest
1016
env:
1117
TARGET_URL: https://pypi.org/project/patch-api/
@@ -49,9 +55,6 @@ jobs:
4955
5056
- name: Publish a Python distribution to PyPI
5157
uses: pypa/gh-action-pypi-publish@release/v1
52-
with:
53-
user: __token__
54-
password: ${{ secrets.PYPI_API_TOKEN }}
5558

5659
- name: Update deployment status (success)
5760
if: success()

patch_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from __future__ import absolute_import
1717

18-
__version__ = "2.6.0"
18+
__version__ = "2.6.1"
1919

2020
# import ApiClient
2121
from patch_api.api_client import ApiClient

patch_api/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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/2.6.0"
94+
self.user_agent = "patch-python/2.6.1"
9595
# Set default Patch-Version
9696
self.patch_version = 2
9797

patch_api/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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: 2\n"
344-
"SDK Package Version: 2.6.0".format(env=sys.platform, pyversion=sys.version)
344+
"SDK Package Version: 2.6.1".format(env=sys.platform, pyversion=sys.version)
345345
)
346346

347347
def get_host_settings(self):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from setuptools import setup, find_packages # noqa: H301
1212

1313
NAME = "patch-api"
14-
VERSION = "2.6.0"
14+
VERSION = "2.6.1"
1515
# To install the library, run the following
1616
#
1717
# python setup.py install

0 commit comments

Comments
 (0)