From 10e7daad721f44eb62a968554a8402e72e3b329e Mon Sep 17 00:00:00 2001 From: Dan Siegel Date: Fri, 19 May 2017 19:06:30 -0700 Subject: fixing missing artifacts --- Source/nuspecs/nuget.ps1 | 5 +++++ appveyor.yml | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Source/nuspecs/nuget.ps1 b/Source/nuspecs/nuget.ps1 index adec1ce..886385b 100644 --- a/Source/nuspecs/nuget.ps1 +++ b/Source/nuspecs/nuget.ps1 @@ -6,17 +6,22 @@ $releaseNotesUri = 'https://github.com/PrismLibrary/Prism/wiki/Release-Notes-' $coreFileVersion = '1.0.0' $nugetFileName = 'nuget.exe' + if($solutionPath -like '*PrismLibrary_XF*' -and $configuration -eq 'Release') { + Write-Host "Packing PrismLibrary_XF" dotnet pack $solutionPath -c $configuration return } if($configuration -eq 'Test' -or $solutionPath -notlike 'PrismLibrary.sln') { + Write-Host "Returning without packing $solutionPath" return } +Write-Host "Packing $solutionPath" + function Get-FileVersion { [OutputType([string])] diff --git a/appveyor.yml b/appveyor.yml index 184800d..53cdd09 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -86,14 +86,15 @@ before_build: build_script: - msbuild %solution_name% +after_build: + #- dotnet pack %solution_name% + # -ps: Write-Host "Completed build for $env:solution_name" + -ps: .\Source\nuspecs\nuget.ps1 -configuration $env:Configuration -solutionPath $env:solution_name + test_script: # UWP tests are not currently not supported by appveyor: https://github.com/appveyor/ci/issues/393 - ps: .\tools\test.ps1 -configuration $env:Configuration -solutionPath $env:solution_name -after_test: - #- dotnet pack %solution_name% - -ps: .\Source\nuspecs\nuget.ps1 -configuration $env:Configuration -solutionPath $env:solution_name - artifacts: - path: '**\Build\*.nupkg' - path: '**\nuspecs\**\*.nupkg' -- cgit v1.2.3