diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 52f2f375c..2e64b0f8b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,7 @@ name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI on: + workflow_dispatch: release: types: [released] @@ -26,16 +27,20 @@ jobs: build --user - name: Build a binary wheel and a source tarball - run: >- - python -m - build - --sdist - --wheel - --outdir dist/ - . - - name: Publish distribution 📦 to Test PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + run: python3 -m build + - name: Store the distribution packages + uses: actions/upload-artifact@v4 + with: + name: python-package-distributions + path: dist/ + - name: Download all the dists + uses: actions/download-artifact@v4 with: - repository-url: https://test.pypi.org/legacy/ + name: python-package-distributions + path: dist +# - name: Publish distribution 📦 to Test PyPI +# uses: pypa/gh-action-pypi-publish@release/v1 +# with: +# repository-url: https://test.pypi.org/legacy/ - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1