diff --git a/.github/workflows/pythonpublish.yml b/.github/workflows/pythonpublish.yml index 86fc795..6df3aca 100644 --- a/.github/workflows/pythonpublish.yml +++ b/.github/workflows/pythonpublish.yml @@ -1,15 +1,11 @@ -# 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 +name: Publish package on PyPI on: release: - types: [created, edited] + types: [created] jobs: deploy: - runs-on: ubuntu-latest steps: @@ -21,12 +17,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine + pip install cython setuptools wheel twine - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - python setup.py sdist bdist_wheel - twine check dist/* - twine upload --skip-existing dist/* + python setup.py bdist_wheel + twine check dist/* && twine upload --skip-existing dist/*