1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 23:33:04 +01:00
Files
OpenRCT2/scripts/ps/appveyor_deploy.ps1
2016-12-04 00:27:25 +00:00

26 lines
877 B
PowerShell

###########################################
# Script to deploy OpenRCT2 from AppVeyor #
###########################################
$testing = (${env:Configuration} -like "*tests")
if (-not $testing)
{
# Check if OpenRCT2.org API security token is available
if (${env:OPENRCT2_ORG_TOKEN})
{
# Only upload tagged builds, develop branch or push/ branches
if (${env:APPVEYOR_REPO_TAG} -eq "true" -or ${env:APPVEYOR_REPO_BRANCH} -match "^develop$|^push/")
{
msbuild openrct2.proj /t:UploadArtifacts /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
}
else
{
Write-Host "No deployment: Non-tagged or push branch." -ForegroundColor Yellow
}
}
else
{
Write-Host "No deployment: %OPENRCT2_ORG_TOKEN% not available." -ForegroundColor Yellow
}
}