From df6f7c543ec4278dfda4b609caee5dc232d52e41 Mon Sep 17 00:00:00 2001 From: Ryan May Date: Fri, 21 Jan 2022 14:54:31 -0700 Subject: [PATCH] CI: Fix PyPI release action Need to handle the fact that with multiple artificats, they're unpacked into a directory for each. Therefore we need steps to consolidate into the dist/ directory. --- .github/workflows/release.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ae02ac120ad..b9c41e0064b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,8 +34,9 @@ jobs: - name: Save built packages as artifact uses: actions/upload-artifact@v2 with: - name: ${{ runner.os }}-${{ steps.setup.outputs.python-version }} + name: packages-${{ runner.os }}-${{ steps.setup.outputs.python-version }} path: dist/ + if-no-files-found: error retention-days: 5 publish: @@ -48,8 +49,11 @@ jobs: steps: - name: Download packages uses: actions/download-artifact@v2 - with: - path: ./dist + + - name: Consolidate packages for upload + run: | + mkdir dist + cp packages-*/* dist/ - name: Publish Package uses: pypa/gh-action-pypi-publish@v1.5.0