mirror of https://github.com/OpenRCT2/OpenRCT2.git
Move artifact upload to AppVeyor deploy
This commit is contained in:
parent
6a367e2066
commit
c19437028d
|
@ -31,3 +31,6 @@ artifacts:
|
|||
name: OpenRCT2-installer
|
||||
- path: .\artifacts\openrct2-symbols*.zip
|
||||
name: OpenRCT2 debug symbols
|
||||
deploy_script:
|
||||
- ps: >-
|
||||
.\scripts\ps\appveyor_deploy.ps1
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
- OPENRCT2_ORG_TOKEN
|
||||
- NO_NSIS: set to true to prevent the NSIS installer building
|
||||
-->
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="All">
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="PublishAll">
|
||||
<!-- Import custom build tasks -->
|
||||
<Import Project="openrct2.targets" />
|
||||
|
||||
|
@ -269,9 +269,4 @@
|
|||
CustomErrorRegularExpression=""error":1" />
|
||||
</Target>
|
||||
|
||||
<Target Name="All">
|
||||
<CallTarget Condition="'$(OPENRCT2_ORG_TOKEN)'==''" Targets="PublishAll" />
|
||||
<CallTarget Condition="'$(OPENRCT2_ORG_TOKEN)'!=''" Targets="UploadArtifacts" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue