From 54f0e86ece07690d2c71e8b57d99d75ccd9c8109 Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Tue, 9 Jan 2024 16:07:23 -0300 Subject: [PATCH] fix upload-download artifacts --- .github/workflows/cibuildwheel.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index fab71d9..ed15574 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -47,9 +47,9 @@ jobs: python -c "import gsw; print(f'gsw v{gsw.__version__}')" && python -m pytest --pyargs gsw - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: - name: pypi-artifacts + name: pypi-artifacts-${{ matrix.os }}-${{ matrix.cibw_archs }} path: ${{ github.workspace }}/wheelhouse/*.whl @@ -58,10 +58,11 @@ jobs: name: "Show artifacts" runs-on: ubuntu-latest steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: - name: pypi-artifacts + pattern: python-artifacts* path: ${{ github.workspace }}/dist + merge-multiple: true - shell: bash run: | @@ -75,7 +76,7 @@ jobs: # upload to PyPI for every tag starting with 'v' if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: pypi-artifacts path: ${{ github.workspace }}/dist