Skip to content

Commit 7cff353

Browse files
committed
Fix Github workflow
1 parent 2736729 commit 7cff353

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
build:
1919
runs-on: ${{ matrix.runner }}
2020
name: ${{ matrix.platform }} ${{ matrix.target }} ${{ matrix.arch }} ${{ matrix.optimize }}
21+
env:
22+
ARTIFACT_NAME: ${{ matrix.platform }}-${{ matrix.target }}-${{ matrix.arch }}-${{ matrix.optimize }}
2123
strategy:
2224
fail-fast: false
2325
matrix:
@@ -143,8 +145,17 @@ jobs:
143145
rm '${{ github.workspace }}/demo/project.godot'
144146
145147
- name: Upload artifact
146-
uses: actions/upload-artifact@v3
148+
uses: actions/upload-artifact@v4
147149
with:
148-
name: ${{ github.event.repository.name }}
150+
name: build-${{ env.ARTIFACT_NAME }}
149151
path: |
150152
${{ github.workspace }}/demo/
153+
merge:
154+
runs-on: ubuntu-latest
155+
needs: build
156+
steps:
157+
- name: Merge Artifacts
158+
uses: actions/upload-artifact/merge@v4
159+
with:
160+
name: ${{ github.event.repository.name }}
161+
pattern: build-*

0 commit comments

Comments
 (0)