From 16d734ac1ae71350fbffd934cf13510ca4afdd8b Mon Sep 17 00:00:00 2001 From: Khoroshevskyi Date: Wed, 17 Jan 2024 13:16:46 -0500 Subject: [PATCH] updated pypi publishing script --- .github/workflows/python-publish.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 3b2d40e..b120129 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -1,6 +1,3 @@ -# This workflows will upload a Python Package using Twine when a release is created -# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries - name: Upload Python Package on: @@ -8,10 +5,9 @@ on: types: [created] jobs: - pypi-publish: + deploy: + name: upload release to PyPI runs-on: ubuntu-latest - name: release to PyPI - environment: release permissions: id-token: write steps: @@ -27,4 +23,5 @@ jobs: - name: Build and publish run: | python setup.py sdist bdist_wheel - twine upload dist/* + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file