Skip to content

Commit 0a8fb0a

Browse files
authored
Merge pull request #27 from jwittner/dev/developPrereleaseBuilds
Push out publish to new PS instance to fix script issues
2 parents 7989af0 + 821210b commit 0a8fb0a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

appveyor.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ environment:
1010
secure: zvkaZiaBXVko+3ZzuSb7W6DTUJmHX98XgEhKs28SnGD+4TM3gzhPxVnNWSmBhXEx
1111
install:
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"
2224
deploy_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"}
2933
for:
3034
-
3135
branches:

0 commit comments

Comments
 (0)