From 7ff88a8b0d526c654e93a3fda9a0e59606d70587 Mon Sep 17 00:00:00 2001 From: Christodoulos Tsoulloftas Date: Sun, 3 Nov 2024 09:20:10 +0200 Subject: [PATCH] Fix release gh action --- .github/workflows/publish.yml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) 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