Skip to content

Commit 6bbd4fd

Browse files
committed
Fixing logic to ensure artifacts are published when [pack] is applied.
1 parent d1b5281 commit 6bbd4fd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

appveyor.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,14 @@ for:
5050
.\build.ps1 -buildNumber "$env:APPVEYOR_BUILD_NUMBER" -includeVersion (!$hasTag)
5151
after_build:
5252
- ps: >
53-
if (!$env:APPVEYOR_PULL_REQUEST_NUMBER) {
53+
$bypassPackaging = $env:APPVEYOR_PULL_REQUEST_NUMBER -and -not $env:APPVEYOR_PULL_REQUEST_TITLE.Contains("[pack]")
54+
55+
if ($bypassPackaging) {
56+
Write-Host "Bypassing artifact publishing for pull request." -ForegroundColor Yellow
57+
} else {
5458
Get-ChildItem buildoutput\*.nupkg | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName "Binaries" }
5559
5660
Get-ChildItem buildoutput\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName "Runtime" }
57-
} else {
58-
Write-Host "Bypassing artifact publishing for pull request." -ForegroundColor Yellow
5961
}
6062
test_script:
6163
- ps: >

0 commit comments

Comments
 (0)