fix(ci): Fix bug in use of upload-artifact failing to merge multiple artifacts into a single release.
This commit is contained in:
parent
26c7876ba0
commit
d03f15bb73
1 changed files with 12 additions and 3 deletions
15
.github/workflows/build-and-release.yaml
vendored
15
.github/workflows/build-and-release.yaml
vendored
|
@ -39,9 +39,10 @@ jobs:
|
|||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: wheels
|
||||
path: ./wheelhouse/*.whl
|
||||
|
||||
build_arm64_wheels:
|
||||
build_wheels_arm64:
|
||||
name: Build arm64 wheels
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
@ -67,6 +68,7 @@ jobs:
|
|||
- name: Upload wheels as artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: wheels_arm64
|
||||
path: ./wheelhouse/*.whl
|
||||
|
||||
build_sdist:
|
||||
|
@ -89,18 +91,25 @@ jobs:
|
|||
python -m build --sdist
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: sdist
|
||||
path: ./dist/*.tar.gz
|
||||
|
||||
release:
|
||||
name: Release
|
||||
needs: [build_wheels, build_arm64_wheels, build_sdist]
|
||||
needs: [build_wheels, build_wheels_arm64, build_sdist]
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Merge Artifacts
|
||||
uses: actions/upload-artifact/merge@v4
|
||||
with:
|
||||
name: release
|
||||
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: artifact
|
||||
name: release
|
||||
path: dist
|
||||
|
||||
- uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: dist/*
|
||||
|
|
Loading…
Reference in a new issue