From 7957bfd5e8b93ad8c2cb96420d15bd7fcd63d165 Mon Sep 17 00:00:00 2001 From: Mohammed Ghannam Date: Fri, 8 Dec 2023 15:37:03 +0100 Subject: [PATCH] Publish wheels to test.pypi.org --- .github/workflows/build_wheels.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 16a50111d..f2e2a07c4 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -30,6 +30,15 @@ jobs: CIBW_TEST_REQUIRES: pytest CIBW_TEST_COMMAND: "pytest {project}/tests" - - uses: actions/upload-artifact@v3 + # - uses: actions/upload-artifact@v3 + # with: + # path: ./wheelhouse/*.whl + + - name: "Publish to test.pypi.org" + uses: pypa/gh-action-pypi-publish@release/v1 with: - path: ./wheelhouse/*.whl + repository_url: https://test.pypi.org/legacy/ + user: __token__ + password: ${{ secrets.TESTPYPI_API_TOKEN }} + verbose: true + packages_dir: ./wheelhouse/