Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d03f15b

Browse filesBrowse files
committed
fix(ci): Fix bug in use of upload-artifact failing to merge multiple artifacts into a single release.
1 parent 26c7876 commit d03f15b
Copy full SHA for d03f15b

File tree

Expand file treeCollapse file tree

1 file changed

+12
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-3
lines changed

‎.github/workflows/build-and-release.yaml

Copy file name to clipboardExpand all lines: .github/workflows/build-and-release.yaml
+12-3Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ jobs:
3939

4040
- uses: actions/upload-artifact@v4
4141
with:
42+
name: wheels
4243
path: ./wheelhouse/*.whl
4344

44-
build_arm64_wheels:
45+
build_wheels_arm64:
4546
name: Build arm64 wheels
4647
runs-on: ubuntu-latest
4748
steps:
@@ -67,6 +68,7 @@ jobs:
6768
- name: Upload wheels as artifacts
6869
uses: actions/upload-artifact@v4
6970
with:
71+
name: wheels_arm64
7072
path: ./wheelhouse/*.whl
7173

7274
build_sdist:
@@ -89,18 +91,25 @@ jobs:
8991
python -m build --sdist
9092
- uses: actions/upload-artifact@v4
9193
with:
94+
name: sdist
9295
path: ./dist/*.tar.gz
9396

9497
release:
9598
name: Release
96-
needs: [build_wheels, build_arm64_wheels, build_sdist]
99+
needs: [build_wheels, build_wheels_arm64, build_sdist]
97100
runs-on: ubuntu-latest
98101

99102
steps:
103+
- name: Merge Artifacts
104+
uses: actions/upload-artifact/merge@v4
105+
with:
106+
name: release
107+
100108
- uses: actions/download-artifact@v3
101109
with:
102-
name: artifact
110+
name: release
103111
path: dist
112+
104113
- uses: softprops/action-gh-release@v2
105114
with:
106115
files: dist/*

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.