From 0474a312b729cd1eab1ded10c4d43bf8d6b25c2c Mon Sep 17 00:00:00 2001 From: Daniel Foerster Date: Mon, 30 Oct 2023 16:20:00 -0500 Subject: [PATCH] Unpack inner artifact directories in Python release Workflow --- .github/workflows/python.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 6b50584eee..52cadf7b9f 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -227,12 +227,16 @@ jobs: #needs: [linux, windows, macos, sdist] needs: [linux, windows, sdist] steps: - - name: Collect artifacts + - name: Download artifacts uses: actions/download-artifact@v3 with: - path: bindings/py/dist - - name: Omit non-release files - run: rm -f bindings/py/dist/*.so + path: bindings/py/artifacts + - name: Bundle release artifacts + run: | + cd bindings/py/ + rm -r artifacts/*.so + mkdir dist + mv artifacts/*/* dist/ - name: Upload to GitHub Release uses: softprops/action-gh-release@v0.1.15 with: @@ -242,3 +246,4 @@ jobs: with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} + packages-dir: bindings/py/dist/