Skip to content

Commit

Permalink
ci: update artifact actions to v4 (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuarli authored Sep 24, 2024
1 parent 64089af commit 8b01c79
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ jobs:
manylinux: auto

- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ github.sha }}
name: artifact-linux-${{ matrix.target }}
path: dist
if-no-files-found: 'error'
# since this artifact will be merged, compression is not necessary
compression-level: '0'

macos:
runs-on: macos-latest
Expand All @@ -49,10 +52,13 @@ jobs:
sccache: "true"

- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ github.sha }}
name: artifact-macos-${{ matrix.target }}
path: dist
if-no-files-found: 'error'
# since this artifact will be merged, compression is not necessary
compression-level: '0'

sdist:
runs-on: ubuntu-latest
Expand All @@ -66,7 +72,22 @@ jobs:
args: --out dist

- name: Upload sdist
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ github.sha }}
name: artifact-sdist
path: dist
if-no-files-found: 'error'
# since this artifact will be merged, compression is not necessary
compression-level: '0'

merge:
name: Create Release Artifact
runs-on: ubuntu-latest
needs: [linux, macos, sdist]
steps:
- uses: actions/upload-artifact/merge@v4
with:
# Craft expects release assets from github to be a single artifact named after the sha.
name: ${{ github.sha }}
pattern: artifact-*
delete-merged: true

0 comments on commit 8b01c79

Please sign in to comment.