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:
10
10
secure : zvkaZiaBXVko+3ZzuSb7W6DTUJmHX98XgEhKs28SnGD+4TM3gzhPxVnNWSmBhXEx
11
11
install :
12
12
- ps : >-
13
+ $ErrorActionPreference = Stop
14
+
13
15
Install-PackageProvider -Name NuGet -Force
14
16
15
17
Remove-Module 'PowerShellGet' -Force -ErrorAction SilentlyContinue -Verbose
@@ -21,11 +23,13 @@ build_script:
21
23
- ps : .\build.ps1 -Revision "$env:APPVEYOR_BUILD_NUMBER" -Suffix "$env:APPVEYOR_REPO_BRANCH"
22
24
deploy_script :
23
25
- 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 }
25
27
26
- Get-Command 'Find-Script'
28
+ Get-Content .\deploy_output.log -ErrorAction SilentlyContinue | Write-Host
27
29
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"}
29
33
for :
30
34
-
31
35
branches :
You can’t perform that action at this time.
0 commit comments