Skip to content

Commit 6f8443d

Browse files
Ivorforcemaiself
authored andcommitted
In the GitHub runner, merge artifacts after all platforms have built.
1 parent d47d247 commit 6f8443d

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ jobs:
7373
7474
- name: Upload artifacts (Linux)
7575
if: matrix.os == 'ubuntu-latest'
76-
uses: actions/upload-artifact@v3
76+
uses: actions/upload-artifact@v4
7777
with:
7878
name: godot-python-${{ matrix.platform }}-${{ matrix.arch }}
7979
path: godot-python*.zip
8080
retention-days: 30
8181

8282
- name: Upload artifacts (Windows)
8383
if: matrix.os == 'windows-latest'
84-
uses: actions/upload-artifact@v3
84+
uses: actions/upload-artifact@v4
8585
with:
8686
name: godot-python-${{ matrix.platform }}-${{ matrix.arch }}
8787
path: |
@@ -92,7 +92,7 @@ jobs:
9292

9393
- name: Upload artifacts (macOS)
9494
if: matrix.os == 'macos-latest'
95-
uses: actions/upload-artifact@v3
95+
uses: actions/upload-artifact@v4
9696
with:
9797
name: godot-python-${{ matrix.platform }}-${{ matrix.arch }}
9898
path: bin/**/*
@@ -107,3 +107,13 @@ jobs:
107107
echo "Releasing artifact for windows"
108108
elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then
109109
echo "Releasing artifact for macOS"
110+
merge:
111+
runs-on: ubuntu-latest
112+
needs: build
113+
steps:
114+
- name: Merge Artifacts
115+
uses: actions/upload-artifact/merge@v4
116+
with:
117+
name: godot-python
118+
pattern: godot-python-*
119+
delete-merged: true

0 commit comments

Comments
 (0)