mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2024-08-30 14:06:07 +02:00
28 lines
990 B
PowerShell
28 lines
990 B
PowerShell
###########################################
|
|
# Script to deploy OpenRCT2 from AppVeyor #
|
|
###########################################
|
|
|
|
$nottesting = (${env:Configuration} -notlike "*tests")
|
|
# Only deploy from VS2015 for now.
|
|
$notvs2017 = (${env:APPVEYOR_JOB_NAME} -notlike "*2017*")
|
|
if ($nottesting -and $notvs2017)
|
|
{
|
|
# 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
|
|
}
|
|
}
|