CI: fix artifacts conflict

Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
This commit is contained in:
The Tumultuous Unicorn Of Darkness 2024-04-28 14:15:58 +02:00
parent e965155651
commit c0578a875c
No known key found for this signature in database
GPG Key ID: 1E55EE2EFF18BC1A
1 changed files with 20 additions and 1 deletions

View File

@ -62,5 +62,24 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform.name }}
name: ${{ matrix.platform.name }}-${{ matrix.config }}
path: installdir/*
merge_win_artifacts:
name: Merge artifacts
runs-on: windows-latest
needs: build_win
strategy:
matrix:
platform:
- win32
- win64
steps:
- name: Merge artifacts for ${{ matrix.platform }}
uses: actions/upload-artifact/merge@v4
with:
name: ${{ matrix.platform }}
pattern: ${{ matrix.platform }}-*
delete-merged: true