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
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
name: wheels
|
||||||
path: ./wheelhouse/*.whl
|
path: ./wheelhouse/*.whl
|
||||||
|
|
||||||
build_arm64_wheels:
|
build_wheels_arm64:
|
||||||
name: Build arm64 wheels
|
name: Build arm64 wheels
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -67,6 +68,7 @@ jobs:
|
||||||
- name: Upload wheels as artifacts
|
- name: Upload wheels as artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
name: wheels_arm64
|
||||||
path: ./wheelhouse/*.whl
|
path: ./wheelhouse/*.whl
|
||||||
|
|
||||||
build_sdist:
|
build_sdist:
|
||||||
|
@ -89,18 +91,25 @@ jobs:
|
||||||
python -m build --sdist
|
python -m build --sdist
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
name: sdist
|
||||||
path: ./dist/*.tar.gz
|
path: ./dist/*.tar.gz
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Release
|
name: Release
|
||||||
needs: [build_wheels, build_arm64_wheels, build_sdist]
|
needs: [build_wheels, build_wheels_arm64, build_sdist]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Merge Artifacts
|
||||||
|
uses: actions/upload-artifact/merge@v4
|
||||||
|
with:
|
||||||
|
name: release
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: artifact
|
name: release
|
||||||
path: dist
|
path: dist
|
||||||
|
|
||||||
- uses: softprops/action-gh-release@v2
|
- uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: dist/*
|
files: dist/*
|
||||||
|
|
Loading…
Reference in a new issue