From 85402eee184e47dfca40f3fdcafcfd9b38e90240 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 15 Dec 2023 13:47:28 +0100 Subject: [PATCH] ci: fix artifacts handling --- .github/workflows/setup.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/setup.yml b/.github/workflows/setup.yml index 789647a..722919c 100644 --- a/.github/workflows/setup.yml +++ b/.github/workflows/setup.yml @@ -45,6 +45,7 @@ jobs: - uses: actions/upload-artifact@v4 with: path: ./wheelhouse/*.whl + name: wheel-${{ matrix.config.platform }} sdist: runs-on: ubuntu-22.04 @@ -63,6 +64,7 @@ jobs: - uses: actions/upload-artifact@v4 with: path: dist/*.tar.gz + name: sdist check: needs: @@ -81,10 +83,8 @@ jobs: run: pip install -r requirements-test.txt - uses: actions/download-artifact@v4 with: - # unpacks default artifact into dist/ - # if `name: artifact` is omitted, the action will create extra parent dir - name: artifact path: dist + - run: mv dist/*/* dist/ - run: twine check dist/*.whl publish: @@ -98,10 +98,8 @@ jobs: steps: - uses: actions/download-artifact@v4 with: - # unpacks default artifact into dist/ - # if `name: artifact` is omitted, the action will create extra parent dir - name: artifact path: dist + - run: mv dist/*/* dist/ - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1