Skip to content

Commit

Permalink
Use download/upload-artifact@v4 in Release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
messense authored Mar 1, 2024
1 parent 90dbcde commit 17c3aeb
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 17c3aeb

Please sign in to comment.