From d40284413c5dd960fb5cc6c7243155ba3fa65aa9 Mon Sep 17 00:00:00 2001 From: Jan Luca van den Busch Date: Wed, 31 Jan 2024 23:16:54 +0100 Subject: [PATCH] adapt to changes in upload-artifact naming --- .github/workflows/pypi-publish.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 727ca2a..9330aa5 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -1,6 +1,9 @@ name: PyPI publish on: + push: + branches: + - main release: types: - published @@ -39,6 +42,7 @@ jobs: uses: actions/upload-artifact@v4 with: path: ./wheelhouse/*.whl + name: artifact-${{ matrix.setup.build }} build_sdist: name: Build sdist and upload to PyPI @@ -67,6 +71,7 @@ jobs: uses: actions/download-artifact@v4 with: path: ./wheels + pattern: artifact-* - name: Build sdist run: | @@ -84,8 +89,8 @@ jobs: echo ls -l dist ls -l dist - - name: Publish package - uses: pypa/gh-action-pypi-publish@v1.8 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} +# - name: Publish package +# uses: pypa/gh-action-pypi-publish@v1.8 +# with: +# user: __token__ +# password: ${{ secrets.PYPI_API_TOKEN }}