Skip to content

Commit 16d734a

Browse files
committed
updated pypi publishing script
1 parent 764b9c4 commit 16d734a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/python-publish.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
# This workflows will upload a Python Package using Twine when a release is created
2-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3-
41
name: Upload Python Package
52

63
on:
74
release:
85
types: [created]
96

107
jobs:
11-
pypi-publish:
8+
deploy:
9+
name: upload release to PyPI
1210
runs-on: ubuntu-latest
13-
name: release to PyPI
14-
environment: release
1511
permissions:
1612
id-token: write
1713
steps:
@@ -27,4 +23,5 @@ jobs:
2723
- name: Build and publish
2824
run: |
2925
python setup.py sdist bdist_wheel
30-
twine upload dist/*
26+
- name: Publish package distributions to PyPI
27+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)