Attempt to fix the build script

This commit is contained in:
Jamie Rees 2019-04-18 16:18:40 +01:00
commit a2c349eac7

View file

@ -44,11 +44,20 @@ skip_commits:
after_build:
- ps: |
If($env:Deploy -eq 'true')
$deployBranches =
"feature/v4",
"develop",
"master";
If(($env:APPVEYOR_REPO_BRANCH -in $deployBranches -Or $env:APPVEYOR_REPO_COMMIT_MESSAGE -Match '!deploy') -And $env:APPVEYOR_REPO_COMMIT_MESSAGE -NotMatch '!build')
{
Get-ChildItem .\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
Get-ChildItem .\*.gz | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
}
Else
{
Write-Output "No Deployment"
}
#cache:
#- '%USERPROFILE%\.nuget\packages'