From 6f1228e4df9c31b64a176b44268895ab781929f6 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Fri, 22 Nov 2024 02:54:25 -0500 Subject: [PATCH] Update build.yaml --- .github/workflows/build.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6665eb9..ab2e4db 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -69,13 +69,18 @@ jobs: retention-days: 7 publish: runs-on: ubuntu-latest - needs: build_wheels + needs: build_wheels if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') steps: - uses: actions/download-artifact@v4 with: - name: dist # This should match the name used in the upload step - path: dist # This ensures the artifacts are placed in the 'dist/' directory + path: artifacts # Downloads all artifacts into 'artifacts/' directory + - name: Move artifacts to dist directory + run: | + mkdir -p dist + find artifacts -type f -name "*.whl" -exec mv {} dist/ \; + find artifacts -type f -name "*.tar.gz" -exec mv {} dist/ \; + find artifacts -type f -name "*.zip" -exec mv {} dist/ \; - name: Publish distribution uses: pypa/gh-action-pypi-publish@release/v1 with: