From c7c1437f4f6aee8d4f1b29b5f0875ae3d534398f Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Wed, 7 Aug 2024 09:46:11 +0200 Subject: [PATCH] wip --- .github/workflows/ci.yml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3cb59c..f74ee55 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,6 +61,7 @@ jobs: - name: Upload wheel as an artifact uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # pin v4.3.6 with: + name: artifact-wheel-${{ matrix.runs-on }}-${{ matrix.python_version }}-${{ matrix.architecture }} path: ./wheelhouse/*.whl Source: @@ -81,12 +82,13 @@ jobs: - name: Build source distribution run: | - pip install . - python setup.py sdist + python -m pip install build + python -m build --sdist - - name: Upload wheel as an artifact + - name: Upload source distribution as an artifact uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # pin v4.3.6 with: + name: artifact-sdist path: ./dist/*.tar.gz Release: @@ -98,11 +100,17 @@ jobs: - name: Download wheels and source distribution uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # pin v4.1.8 with: - name: artifact + pattern: artifact-* path: dist + merge-multiple: true - - name: Publish on PyPI - uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # pin v1.9.0 - with: - user: __token__ - password: ${{ secrets.pypi_password }} + - name: SHOW ME WHAT YOU GOT + run: | + ls -lh + ls -lh dist + + # - name: Publish on PyPI + # uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # pin v1.9.0 + # with: + # user: __token__ + # password: ${{ secrets.pypi_password }}