File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ install:
3333 $Version = "$($Env:APPVEYOR_BUILD_VERSION)$($VersionSuffix)"
3434 $Env:ASSEMBLY_INFORMATIONAL_VERSION = $Version
3535 Write-Host "Assembly informational version = $($Env:ASSEMBLY_INFORMATIONAL_VERSION)"
36- $ShouldBuildNuget = "$($env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null)"
37- $Env:SHOULD_BUILD_NUGET = $ShouldBuildNuget
38- Write-Host "Should build Nuget = $($Env:SHOULD_BUILD_NUGET )"
36+ $ShouldPublishNugetArtifact = "$($env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null)"
37+ $Env:SHOULD_PUBLISH_NUGET_ARTIFACT = $ShouldPublishNugetArtifact
38+ Write-Host "Should publish Nuget artifact = $($Env:SHOULD_PUBLISH_NUGET_ARTIFACT )"
3939
4040assembly_info :
4141 patch : true
@@ -59,9 +59,10 @@ test_script:
5959
6060on_success :
6161- ps : |
62- If ($Env:SHOULD_BUILD_NUGET -eq $True)
62+ - ps : |
63+ & "C:\projects\libgit2sharp\nuget.package\BuildNugetPackage.ps1" "$env:APPVEYOR_REPO_COMMIT"
64+ If ($Env:SHOULD_PUBLISH_NUGET_ARTIFACT -eq $True)
6365 {
64- & "C:\projects\libgit2sharp\nuget.package\BuildNugetPackage.ps1" "$env:APPVEYOR_REPO_COMMIT"
6566 Get-ChildItem "C:\projects\libgit2sharp\LibGit2sharp\*.nupkg" | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
6667 }
6768
You can’t perform that action at this time.
0 commit comments