diff --git a/.github/workflows/release-pypi.yaml b/.github/workflows/release-pypi.yaml index 6863fe574..a0c752e78 100644 --- a/.github/workflows/release-pypi.yaml +++ b/.github/workflows/release-pypi.yaml @@ -2,7 +2,7 @@ name: Release Python on: push: - branches: [release/*] + branches: [ release/* ] jobs: release: @@ -21,6 +21,17 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.10" - - uses: cucumber/action-publish-pypi@v3.0.0 + + - name: Show Python version + run: python --version + + - name: Build package + run: | + python -m pip install build twine + python -m build + twine check --strict dist/* + + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 with: - working-directory: "python" + packages-dir: python/dist