From 17c3aeb8febaf789f4b54a4abffba167298b4d2f Mon Sep 17 00:00:00 2001 From: messense Date: Fri, 1 Mar 2024 16:38:35 +0800 Subject: [PATCH] Use download/upload-artifact@v4 in Release.yml --- .github/workflows/Release.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 1a1d408..67a0ac4 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -20,12 +20,12 @@ jobs: args: --release --out dist --universal2 sccache: 'true' - name: Upload wheels - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: wheels + name: wheels-macos-universal2 path: dist - name: Upload binary artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: apple-darwin-bin path: target/release/cargo-xwin @@ -72,12 +72,12 @@ jobs: args: --release --out dist sccache: 'true' - name: Upload wheels - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: wheels + name: wheels-${{ matrix.platform.arch }} path: dist - name: Upload binary artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: windows-${{ matrix.platform.arch }}-bin path: target/${{ matrix.platform.target }}/release/cargo-xwin.exe @@ -129,12 +129,12 @@ jobs: args: --release -o dist sccache: 'true' - name: Upload wheels - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: wheels + name: wheels-${{ matrix.platform.target }} path: dist - name: Upload binary artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.platform.target }}-bin path: target/${{ matrix.platform.target }}/release/cargo-xwin @@ -224,9 +224,10 @@ jobs: if: "startsWith(github.ref, 'refs/tags/')" needs: [ macos, windows, linux ] steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: - name: wheels + pattern: wheels-* + merge-multiple: true - name: Publish to PyPI env: MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_PASSWORD }}