From 25aad2053cfbbd2ee83a3140d75265efa391ce37 Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Mon, 22 Jul 2024 11:15:27 +0200 Subject: [PATCH 01/16] try alternativ actions in build-linux --- .github/workflows/test-and-deploy.yml | 28 ++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 544b7197..45547846 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -175,7 +175,7 @@ jobs: path: dist/* build-linux: - if: github.event_name == 'release' + # if: github.event_name == 'release' strategy: matrix: python: ['cp39-cp39', 'cp310-cp310', 'cp311-cp311', 'cp312-cp312'] @@ -185,7 +185,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + # uses: actions/checkout@v2 + run: | + yum update + yum install -y git + git clone --depth=1 https://github.com/${{ github.repository }}.git . + git checkout ${{ github.sha }} - name: Install build dependencies run: | @@ -222,11 +227,20 @@ jobs: - name: List contents of dist run: ls -R dist - - name: Archive build artifacts - uses: actions/upload-artifact@v1 - with: - name: dist-artifacts-manylinux-${{ matrix.python }} - path: dist/* + - name: Upload artifact using curl + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + curl -H "Authorization: token $GITHUB_TOKEN" \ + -H "Content-Type: application/zip" \ + --data-binary @dist-artifacts-manylinux-${{ matrix.python }}.tar.gz \ + "https://uploads.github.com/repos/${{ github.repository }}/actions/artifacts/${{ github.run_id }}/dist-artifacts-manylinux-${{ matrix.python }}?name=dist-artifacts-manylinux-${{ matrix.python }}.tar.gz" + + # - name: Archive build artifacts + # uses: actions/upload-artifact@v1 + # with: + # name: dist-artifacts-manylinux-${{ matrix.python }} + # path: dist/* deploy: runs-on: ubuntu-latest From 030bef943e0313c13995c8c461d7dd435c5ca321 Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Mon, 22 Jul 2024 11:17:57 +0200 Subject: [PATCH 02/16] update manylinux build job's git checkout --- .github/workflows/test-and-deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 45547846..093984b8 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -189,6 +189,7 @@ jobs: run: | yum update yum install -y git + git config --global --add safe.directory /__w/GPy/GPy git clone --depth=1 https://github.com/${{ github.repository }}.git . git checkout ${{ github.sha }} From a2cce4209bf5d73466752a80dd1e5800655dbf7b Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Mon, 22 Jul 2024 11:22:23 +0200 Subject: [PATCH 03/16] inspect deploy job before doing the release --- .github/workflows/test-and-deploy.yml | 43 +++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 093984b8..30316c12 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -110,7 +110,7 @@ jobs: pytest GPy/testing build-windows: - if: github.event_name == 'release' + # if: github.event_name == 'release' strategy: matrix: os: [windows-latest] @@ -143,7 +143,7 @@ jobs: path: dist build-macos: - if: github.event_name == 'release' + # if: github.event_name == 'release' strategy: matrix: os: [macos-latest] @@ -243,6 +243,45 @@ jobs: # name: dist-artifacts-manylinux-${{ matrix.python }} # path: dist/* + deploy-test: + runs-on: ubuntu-latest + needs: [test-windows, test-linux, test-macos, build-linux, build-windows, build-macos] + # if: github.event_name == 'release' + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup python + uses: actions/setup-python@v4 + with: + python-version: '3.9' + + - name: Install twine + run: | + pip install --upgrade pip + pip install twine + + - name: Download all artifacts to a specific directory + uses: actions/download-artifact@v3 + with: + path: dist + + - name: Create dist directory + run: mkdir -p dist + + - name: Move files from subdirectories + run: | + for subdirectory in dist/*/; do + dir_name=$(basename "$subdirectory") + mv "$subdirectory"* dist/ + rm -r "$subdirectory" + echo "Moved files from '$dir_name' to 'dist/'" + done + + - name: Inspect wheel files + run: | + ls -R dist + deploy: runs-on: ubuntu-latest needs: [test-windows, test-linux, test-macos, build-linux, build-windows, build-macos] From b9084f3f37b88f89a46286475221b6ab5b46f633 Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Mon, 22 Jul 2024 11:57:03 +0200 Subject: [PATCH 04/16] add artifact extraction to deploy-test --- .github/workflows/test-and-deploy.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 30316c12..a109cc58 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -269,6 +269,13 @@ jobs: - name: Create dist directory run: mkdir -p dist + - name: Extract tar.gz files + run: | + for artifact in dist/*; do + tar -xzf "$artifact" -C dist + rm "$artifact" + done + - name: Move files from subdirectories run: | for subdirectory in dist/*/; do From 95a348494452e5083fe99bb3a3317cf96cff5f4b Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Mon, 22 Jul 2024 13:35:45 +0200 Subject: [PATCH 05/16] update handling of tar files in deploy-test --- .github/workflows/test-and-deploy.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index a109cc58..5db53026 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -272,10 +272,16 @@ jobs: - name: Extract tar.gz files run: | for artifact in dist/*; do - tar -xzf "$artifact" -C dist - rm "$artifact" + if [[ "$artifact" == *.tar.gz ]]; then + tar -xzf "$artifact" -C dist + rm "$artifact" + fi done + - name: Inspect wheel files + run: | + ls -R dist + - name: Move files from subdirectories run: | for subdirectory in dist/*/; do From 4ab5fa87f0db581f4e05840f52ba978e376f57a1 Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Mon, 22 Jul 2024 14:23:47 +0200 Subject: [PATCH 06/16] linux-build: add missing creation of tar ball --- .github/workflows/test-and-deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 5db53026..e4ecaf33 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -232,6 +232,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | + tar -czf dist-artifacts-linux-${{ matrix.python }}.tar.gz -C dist . curl -H "Authorization: token $GITHUB_TOKEN" \ -H "Content-Type: application/zip" \ --data-binary @dist-artifacts-manylinux-${{ matrix.python }}.tar.gz \ From 1c972c115fb833d513eef8ebb8a3cb01725aa838 Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Mon, 22 Jul 2024 14:48:45 +0200 Subject: [PATCH 07/16] add some checks and the use of artifact path to build-linux job --- .github/workflows/test-and-deploy.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index e4ecaf33..84d21db2 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -237,6 +237,9 @@ jobs: -H "Content-Type: application/zip" \ --data-binary @dist-artifacts-manylinux-${{ matrix.python }}.tar.gz \ "https://uploads.github.com/repos/${{ github.repository }}/actions/artifacts/${{ github.run_id }}/dist-artifacts-manylinux-${{ matrix.python }}?name=dist-artifacts-manylinux-${{ matrix.python }}.tar.gz" + with: + name: dist-artifacts-manylinux-${{ matrix.python }} + path: dist/* # - name: Archive build artifacts # uses: actions/upload-artifact@v1 @@ -267,13 +270,25 @@ jobs: with: path: dist + - name: List all downloaded artifacts + run: | + echo "Listing all downloaded artifacts:" + ls -lh dist + - name: Create dist directory run: mkdir -p dist + - name: List tar files before extraction + run: | + echo "Listing all tar files before extraction:" + find dist -name "*.tar.gz" + - name: Extract tar.gz files run: | for artifact in dist/*; do if [[ "$artifact" == *.tar.gz ]]; then + echo "Extracting $artifact" + tar -tzf "$artifact" tar -xzf "$artifact" -C dist rm "$artifact" fi @@ -292,6 +307,17 @@ jobs: echo "Moved files from '$dir_name' to 'dist/'" done + - name: Move files from subdirectories + run: | + for subdirectory in dist/*/; do + if [ -d "$subdirectory" ]; then + dir_name=$(basename "$subdirectory") + mv "$subdirectory"* dist/ + rm -r "$subdirectory" + echo "Moved files from '$dir_name' to 'dist/'" + fi + done + - name: Inspect wheel files run: | ls -R dist From 8c7e3c858f799645a9e930306d78ac1e8b11521f Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Mon, 22 Jul 2024 22:43:23 +0200 Subject: [PATCH 08/16] build-linux try latest actions --- .github/workflows/test-and-deploy.yml | 29 +++++---------------------- 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 84d21db2..52a91171 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -185,14 +185,8 @@ jobs: steps: - name: Checkout - # uses: actions/checkout@v2 - run: | - yum update - yum install -y git - git config --global --add safe.directory /__w/GPy/GPy - git clone --depth=1 https://github.com/${{ github.repository }}.git . - git checkout ${{ github.sha }} - + uses: actions/checkout@v4 + - name: Install build dependencies run: | /opt/python/${{ matrix.python }}/bin/python -m pip install setuptools @@ -205,7 +199,7 @@ jobs: run: | /opt/python/${{ matrix.python }}/bin/python setup.py bdist_wheel - - name: Install auditwheel # this should be available?! + - name: Install auditwheel run: | /opt/python/${{ matrix.python }}/bin/python -m pip install auditwheel @@ -228,25 +222,12 @@ jobs: - name: List contents of dist run: ls -R dist - - name: Upload artifact using curl - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - tar -czf dist-artifacts-linux-${{ matrix.python }}.tar.gz -C dist . - curl -H "Authorization: token $GITHUB_TOKEN" \ - -H "Content-Type: application/zip" \ - --data-binary @dist-artifacts-manylinux-${{ matrix.python }}.tar.gz \ - "https://uploads.github.com/repos/${{ github.repository }}/actions/artifacts/${{ github.run_id }}/dist-artifacts-manylinux-${{ matrix.python }}?name=dist-artifacts-manylinux-${{ matrix.python }}.tar.gz" + - name: Archive build artifacts + uses: actions/upload-artifact@v4 with: name: dist-artifacts-manylinux-${{ matrix.python }} path: dist/* - # - name: Archive build artifacts - # uses: actions/upload-artifact@v1 - # with: - # name: dist-artifacts-manylinux-${{ matrix.python }} - # path: dist/* - deploy-test: runs-on: ubuntu-latest needs: [test-windows, test-linux, test-macos, build-linux, build-windows, build-macos] From 121c3c7ee55145daf3c2a8bdf792feb496a176d3 Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Mon, 22 Jul 2024 23:05:04 +0200 Subject: [PATCH 09/16] build-linux rollback --- .github/workflows/test-and-deploy.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 52a91171..f5713a76 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -185,11 +185,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 - - - name: Install build dependencies - run: | - /opt/python/${{ matrix.python }}/bin/python -m pip install setuptools + uses: actions/checkout@v3 - name: Compile c headers run: | @@ -223,7 +219,7 @@ jobs: run: ls -R dist - name: Archive build artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: dist-artifacts-manylinux-${{ matrix.python }} path: dist/* From d3b2c9f3515e573518cfa8cac4c3d419cff6fb69 Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Mon, 22 Jul 2024 23:29:27 +0200 Subject: [PATCH 10/16] try older version of manylinux --- .github/workflows/test-and-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index f5713a76..be89e62e 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -181,7 +181,7 @@ jobs: python: ['cp39-cp39', 'cp310-cp310', 'cp311-cp311', 'cp312-cp312'] runs-on: ubuntu-latest container: - image: quay.io/pypa/manylinux2014_x86_64 + image: quay.io/pypa/manylinux2014_x86_64:2024-01-29-1785b0b steps: - name: Checkout From 0e4ecc3363c32608bc9822273bde9e26116e6bf3 Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Mon, 22 Jul 2024 23:34:36 +0200 Subject: [PATCH 11/16] try build-linux with even older actions --- .github/workflows/test-and-deploy.yml | 64 +++++++++++++-------------- 1 file changed, 31 insertions(+), 33 deletions(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index be89e62e..14ba4038 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -180,49 +180,47 @@ jobs: matrix: python: ['cp39-cp39', 'cp310-cp310', 'cp311-cp311', 'cp312-cp312'] runs-on: ubuntu-latest - container: - image: quay.io/pypa/manylinux2014_x86_64:2024-01-29-1785b0b + container: quay.io/pypa/manylinux2014_x86_64 steps: - - name: Checkout - uses: actions/checkout@v3 + - uses: actions/checkout@v1 - - name: Compile c headers - run: | - /opt/python/${{ matrix.python }}/bin/python setup.py develop + - name: Compile c headers + run: | + /opt/python/${{ matrix.python }}/bin/python setup.py develop - - name: Build wheel files - run: | - /opt/python/${{ matrix.python }}/bin/python setup.py bdist_wheel + - name: Build wheel files + run: | + /opt/python/${{ matrix.python }}/bin/python setup.py bdist_wheel - - name: Install auditwheel - run: | - /opt/python/${{ matrix.python }}/bin/python -m pip install auditwheel - - - name: Repair wheel files - run: | - /opt/python/${{ matrix.python }}/bin/python -m auditwheel repair dist/*${{ matrix.python }}-linux_x86_64.whl + - name: Install auditwheel + run: | + /opt/python/${{ matrix.python }}/bin/python -m pip install auditwheel + + - name: Repair wheel files + run: | + /opt/python/${{ matrix.python }}/bin/python -m auditwheel repair dist/*${{ matrix.python }}-linux_x86_64.whl - - name: List contents of dist - run: ls -R dist + - name: List contents of dist + run: ls -R dist - - name: List contests of wheelhouse - run: ls -R wheelhouse + - name: List contests of wheelhouse + run: ls -R wheelhouse - - name: Move wheelhouse wheel files to dist - run: | - rm dist/* - mv wheelhouse/* dist/ - rmdir wheelhouse + - name: Move wheelhouse wheel files to dist + run: | + rm dist/* + mv wheelhouse/* dist/ + rmdir wheelhouse - - name: List contents of dist - run: ls -R dist + - name: List contents of dist + run: ls -R dist - - name: Archive build artifacts - uses: actions/upload-artifact@v3 - with: - name: dist-artifacts-manylinux-${{ matrix.python }} - path: dist/* + - name: Archive build artifacts + uses: actions/upload-artifact@v1 + with: + name: dist-artifacts-manylinux-${{ matrix.python }} + path: dist/* deploy-test: runs-on: ubuntu-latest From e20644c96318b463e8ea1a9f628f171590af989a Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Mon, 22 Jul 2024 23:40:06 +0200 Subject: [PATCH 12/16] bump upload-artifact --- .github/workflows/test-and-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 14ba4038..32c95fef 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -217,7 +217,7 @@ jobs: run: ls -R dist - name: Archive build artifacts - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v2 with: name: dist-artifacts-manylinux-${{ matrix.python }} path: dist/* From ade8b351debc6ad25c79984634b3a013690e6558 Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Mon, 22 Jul 2024 23:46:40 +0200 Subject: [PATCH 13/16] github-actions: remove deletion of dists folder --- .github/workflows/test-and-deploy.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 32c95fef..26b46437 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -209,7 +209,6 @@ jobs: - name: Move wheelhouse wheel files to dist run: | - rm dist/* mv wheelhouse/* dist/ rmdir wheelhouse @@ -217,7 +216,7 @@ jobs: run: ls -R dist - name: Archive build artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v1 with: name: dist-artifacts-manylinux-${{ matrix.python }} path: dist/* From aabeec2a74edd4679ce5f77a5e713e2f4e84ad14 Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Mon, 22 Jul 2024 23:52:00 +0200 Subject: [PATCH 14/16] github actions: try to not use direct path --- .github/workflows/test-and-deploy.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 26b46437..b6477fb5 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -209,17 +209,22 @@ jobs: - name: Move wheelhouse wheel files to dist run: | + rm dist/* mv wheelhouse/* dist/ rmdir wheelhouse - name: List contents of dist run: ls -R dist + - name: Get the name of the wheel file + id: get-wheel-name + run: echo "::set-output name=wheel-name::$(ls dist/*.whl)" + - name: Archive build artifacts uses: actions/upload-artifact@v1 with: name: dist-artifacts-manylinux-${{ matrix.python }} - path: dist/* + path: ${{ steps.get-wheel-name.outputs.wheel-name }} deploy-test: runs-on: ubuntu-latest From 0833966c1666d3cd1f2c2d4f6c690210fc7d65c4 Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Mon, 22 Jul 2024 23:53:05 +0200 Subject: [PATCH 15/16] github actions: fix identation --- .github/workflows/test-and-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index b6477fb5..c8764e08 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -216,7 +216,7 @@ jobs: - name: List contents of dist run: ls -R dist - - name: Get the name of the wheel file + - name: Get the name of the wheel file id: get-wheel-name run: echo "::set-output name=wheel-name::$(ls dist/*.whl)" From aa49220fd1616e57bf6684b9a4cc98ace8f1aa8d Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Tue, 23 Jul 2024 08:11:42 +0200 Subject: [PATCH 16/16] github actions: clenaup build-and-deploy jobs --- .github/workflows/test-and-deploy.yml | 81 +-------------------------- 1 file changed, 3 insertions(+), 78 deletions(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index c8764e08..b36bada9 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -110,7 +110,7 @@ jobs: pytest GPy/testing build-windows: - # if: github.event_name == 'release' + if: github.event_name == 'release' strategy: matrix: os: [windows-latest] @@ -143,7 +143,7 @@ jobs: path: dist build-macos: - # if: github.event_name == 'release' + if: github.event_name == 'release' strategy: matrix: os: [macos-latest] @@ -175,7 +175,7 @@ jobs: path: dist/* build-linux: - # if: github.event_name == 'release' + if: github.event_name == 'release' strategy: matrix: python: ['cp39-cp39', 'cp310-cp310', 'cp311-cp311', 'cp312-cp312'] @@ -226,81 +226,6 @@ jobs: name: dist-artifacts-manylinux-${{ matrix.python }} path: ${{ steps.get-wheel-name.outputs.wheel-name }} - deploy-test: - runs-on: ubuntu-latest - needs: [test-windows, test-linux, test-macos, build-linux, build-windows, build-macos] - # if: github.event_name == 'release' - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup python - uses: actions/setup-python@v4 - with: - python-version: '3.9' - - - name: Install twine - run: | - pip install --upgrade pip - pip install twine - - - name: Download all artifacts to a specific directory - uses: actions/download-artifact@v3 - with: - path: dist - - - name: List all downloaded artifacts - run: | - echo "Listing all downloaded artifacts:" - ls -lh dist - - - name: Create dist directory - run: mkdir -p dist - - - name: List tar files before extraction - run: | - echo "Listing all tar files before extraction:" - find dist -name "*.tar.gz" - - - name: Extract tar.gz files - run: | - for artifact in dist/*; do - if [[ "$artifact" == *.tar.gz ]]; then - echo "Extracting $artifact" - tar -tzf "$artifact" - tar -xzf "$artifact" -C dist - rm "$artifact" - fi - done - - - name: Inspect wheel files - run: | - ls -R dist - - - name: Move files from subdirectories - run: | - for subdirectory in dist/*/; do - dir_name=$(basename "$subdirectory") - mv "$subdirectory"* dist/ - rm -r "$subdirectory" - echo "Moved files from '$dir_name' to 'dist/'" - done - - - name: Move files from subdirectories - run: | - for subdirectory in dist/*/; do - if [ -d "$subdirectory" ]; then - dir_name=$(basename "$subdirectory") - mv "$subdirectory"* dist/ - rm -r "$subdirectory" - echo "Moved files from '$dir_name' to 'dist/'" - fi - done - - - name: Inspect wheel files - run: | - ls -R dist - deploy: runs-on: ubuntu-latest needs: [test-windows, test-linux, test-macos, build-linux, build-windows, build-macos]