Skip to content

Commit

Permalink
updated pypi publishing script
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Jan 17, 2024
1 parent 764b9c4 commit 16d734a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
# 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:
release:
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:
Expand All @@ -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

0 comments on commit 16d734a

Please sign in to comment.