fix(ci): Fix bug in use of upload-artifact failing to merge multiple artifacts into a single release.

This commit is contained in:
Andrei Betlen 2024-04-30 02:58:55 -04:00
parent 26c7876ba0
commit d03f15bb73

View file

@ -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/*