Skip to content

Commit

Permalink
v4
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuarli committed Sep 23, 2024
1 parent 64089af commit f3413bd
Showing 1 changed file with 30 additions and 9 deletions.
39 changes: 30 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Release build

on:
push:
branches:
- "release/**"
pull_request:
# branches:
# - "release/**"
# pull_request:

jobs:
linux:
Expand All @@ -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 f3413bd

Please sign in to comment.