mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Move artifact upload to AppVeyor deploy
This commit is contained in:
21
scripts/ps/appveyor_deploy.ps1
Normal file
21
scripts/ps/appveyor_deploy.ps1
Normal file
@@ -0,0 +1,21 @@
|
||||
###########################################
|
||||
# Script to deploy OpenRCT2 from AppVeyor #
|
||||
###########################################
|
||||
|
||||
# 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} -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
|
||||
}
|
||||
@@ -23,6 +23,7 @@ if ($env:ENCKEY)
|
||||
Check-ExitCode
|
||||
}
|
||||
|
||||
# Check if OpenRCT2.org API security token is available
|
||||
if (${env:OPENRCT2_ORG_TOKEN})
|
||||
{
|
||||
if (-not (Test-Path "C:\ProgramData\chocolatey\lib\nsis.portable"))
|
||||
@@ -43,18 +44,6 @@ if (${env:OPENRCT2_ORG_TOKEN})
|
||||
cp FindProcDLL.dll "C:\ProgramData\chocolatey\lib\nsis.portable\tools\nsis-3.0b1\Plugins\x86-ansi"
|
||||
}
|
||||
}
|
||||
|
||||
# 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} -or ${env:APPVEYOR_REPO_BRANCH} -match "^develop$|^push/")
|
||||
{
|
||||
# Remove the OPENRCT2_ORG_TOKEN environment variable so that the msbuild will not
|
||||
# try to upload the artifacts
|
||||
${env:OPENRCT2_ORG_TOKEN} = $null
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
# Don't build the NSIS installer for non-uploaded builds
|
||||
|
||||
Reference in New Issue
Block a user