File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ environment:
1010 secure : zvkaZiaBXVko+3ZzuSb7W6DTUJmHX98XgEhKs28SnGD+4TM3gzhPxVnNWSmBhXEx
1111install :
1212- ps : >-
13+ $ErrorActionPreference = Stop
14+
1315 Install-PackageProvider -Name NuGet -Force
1416
1517 Remove-Module 'PowerShellGet' -Force -ErrorAction SilentlyContinue -Verbose
@@ -21,11 +23,13 @@ build_script:
2123- ps : .\build.ps1 -Revision "$env:APPVEYOR_BUILD_NUMBER" -Suffix "$env:APPVEYOR_REPO_BRANCH"
2224deploy_script :
2325- ps : >-
24- Get-Command ' Publish-Module'
26+ $publish = Start-Process 'powershell' -Wait -PassThru -RedirectStandardError .\deploy_error.log -RedirectStandardOutput .\deploy_out.log { Publish-Module -Path .\UnitySetup -NugetAPIKey $env:NugetAPIKey -Verbose }
2527
26- Get-Command 'Find-Script'
28+ Get-Content .\deploy_output.log -ErrorAction SilentlyContinue | Write-Host
2729
28- Publish-Module -Path .\UnitySetup -NugetAPIKey $env:NugetAPIKey
30+ Get-Content .\deploy_error.log -ErrorAction SilentlyContinue | Write-Host -ForegroundColor Red
31+
32+ if( $publish.ExitCode -ne 0 ) { Write-Error "Publish step failed - see above logs"}
2933for :
3034-
3135 branches :
You can’t perform that action at this time.
0 commit comments