Skip to content

Commit 879216d

Browse files
committed
task: update yml file to publish yak artifacts
1 parent 3755d6e commit 879216d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

build-test.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,20 @@ steps:
178178
$yakRh7Name = $yakCurrentVersName -Replace "rh6_27", "rh7_0"
179179
Rename-Item -Path $yakCurrentVersName -NewName $yakRh7Name
180180
..\yak build --platform win
181+
New-Item -ItemType Directory -Path $(System.DefaultWorkingDirectory)\results\yak
182+
Copy-Item $yakCurrentVersName $(System.DefaultWorkingDirectory)\results\yak\$yakCurrentVersName
183+
Copy-Item $yakRh7Name $(System.DefaultWorkingDirectory)\results\yak\$yakRh7Name
181184
displayName: Package yak
182-
185+
186+
- task: PowerShell@2
187+
displayName: 'List files in Yak folder'
188+
inputs:
189+
targetType: 'inline'
190+
script: |
191+
$yakFolder = "$(System.DefaultWorkingDirectory)/results/yak"
192+
Write-Host "Listing files in folder: $yakFolder"
193+
Get-ChildItem -Path $yakFolder -Filter "*.yak" | ForEach-Object { Write-Host "Found file: $($_.FullName)" }
194+
183195
- publish: $(System.DefaultWorkingDirectory)\results\yak\
184196
displayName: Publish Yak Package to Azure
185197
artifact: Yak Package

0 commit comments

Comments
 (0)