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:
33
33
$Version = "$($Env:APPVEYOR_BUILD_VERSION)$($VersionSuffix)"
34
34
$Env:ASSEMBLY_INFORMATIONAL_VERSION = $Version
35
35
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 )"
39
39
40
40
assembly_info :
41
41
patch : true
@@ -59,9 +59,10 @@ test_script:
59
59
60
60
on_success :
61
61
- 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)
63
65
{
64
- & "C:\projects\libgit2sharp\nuget.package\BuildNugetPackage.ps1" "$env:APPVEYOR_REPO_COMMIT"
65
66
Get-ChildItem "C:\projects\libgit2sharp\LibGit2sharp\*.nupkg" | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
66
67
}
67
68
You can’t perform that action at this time.
0 commit comments