Skip to content

Commit d1ca22e

Browse files
committed
Added job to merge artifacts
1 parent 98a03d8 commit d1ca22e

1 file changed

Lines changed: 22 additions & 3 deletions

File tree

.github/workflows/Lucene-Net-Performance-Regression.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ jobs:
134134
135135
$tempOutputDir = Join-Path $env:GITHUB_WORKSPACE "nuget-temp"
136136
New-Item -ItemType Directory -Force -Path $tempOutputDir | Out-Null
137-
$outputDir = Join-Path $env:GITHUB_WORKSPACE "nuget"
137+
$outputDir = Join-Path $env:GITHUB_WORKSPACE "nuget-subfolders" '${{ matrix.commit }}'
138138
New-Item -ItemType Directory -Force -Path $outputDir | Out-Null
139139
140140
dotnet pack "./Lucene.Net.sln" `
@@ -158,10 +158,29 @@ jobs:
158158
- name: Upload packages
159159
uses: actions/upload-artifact@v4
160160
with:
161-
name: benchmark-nupkgs
162-
path: nuget/*.nupkg
161+
name: nuget-subfolders
162+
path: nuget-subfolders/${{ matrix.commit }}/*.nupkg
163163
if-no-files-found: ignore
164164
compression-level: 9
165165
retention-days: 7
166166
overwrite: false
167167

168+
merge-artifacts:
169+
needs: build
170+
runs-on: ubuntu-latest
171+
steps:
172+
- name: Download all artifacts
173+
uses: actions/download-artifact@v4
174+
with:
175+
pattern: nuget-subfolders*
176+
merge-multiple: true
177+
path: merged
178+
179+
- name: Upload merged artifact
180+
uses: actions/upload-artifact@v4
181+
with:
182+
name: nuget-packages
183+
path: merged
184+
compression-level: 9
185+
retention-days: 7
186+
overwrite: true

0 commit comments

Comments
 (0)