mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 10:21:57 -05:00
Fix AppVeyor build / upload for tags
This commit is contained in:
parent
99c68439b1
commit
53d1375a95
2 changed files with 7 additions and 7 deletions
|
@ -288,17 +288,18 @@
|
|||
<PropertyGroup>
|
||||
<UploadLink>https://openrct2.org/altapi/?command=push-build</UploadLink>
|
||||
<UploadFileNameShort>%(UploadArtifacts.Filename)%(UploadArtifacts.Extension)</UploadFileNameShort>
|
||||
<UploadGitBranch>master</UploadGitBranch>
|
||||
<UploadGitBranch Condition="'$(GIT_BRANCH)'!=''">$(GIT_BRANCH)</UploadGitBranch>
|
||||
</PropertyGroup>
|
||||
<Message Text="Uploading $(UploadFileNameShort)" Importance="high" />
|
||||
<Error Condition="'$(OPENRCT2_ORG_TOKEN)'==''" Text="OPENRCT2_ORG_TOKEN not set." />
|
||||
<Error Condition="'$(GIT_COMMIT_SHA1)'==''" Text="GIT_COMMIT_SHA1 not set." />
|
||||
<Error Condition="'$(GIT_BRANCH)'==''" Text="GIT_BRANCH not set." />
|
||||
<Exec EchoOff="true" Command="curl.exe -s -o - ^
|
||||
--form "key=$(OPENRCT2_ORG_TOKEN)" ^
|
||||
--form "fileName=%(UploadArtifacts.Name)" ^
|
||||
--form "version=$(Version)" ^
|
||||
--form "gitHash=$(GIT_COMMIT_SHA1)" ^
|
||||
--form "gitBranch=$(GIT_BRANCH)" ^
|
||||
--form "gitBranch=$(UploadGitBranch)" ^
|
||||
--form "flavourId=%(UploadArtifacts.FlavourId)" ^
|
||||
--form "file=@%(UploadArtifacts.Identity)" ^
|
||||
"$(UploadLink)""
|
||||
|
|
|
@ -52,10 +52,9 @@ else
|
|||
${env:NO_NSIS} = "true"
|
||||
}
|
||||
|
||||
$env:GIT_TAG = $env:APPVEYOR_REPO_TAG_NAME
|
||||
$env:GIT_BRANCH = $env:APPVEYOR_REPO_BRANCH
|
||||
if (${env:APPVEYOR_REPO_TAG} -eq "true")
|
||||
$env:GIT_TAG = $env:APPVEYOR_REPO_TAG_NAME
|
||||
if (${env:APPVEYOR_REPO_TAG} -ne "true")
|
||||
{
|
||||
$env:GIT_BRANCH = $env:GIT_TAG
|
||||
$env:GIT_BRANCH = $env:APPVEYOR_REPO_BRANCH
|
||||
}
|
||||
$env:GIT_COMMIT_SHA1 = $env:APPVEYOR_REPO_COMMIT
|
||||
$env:GIT_COMMIT_SHA1 = $env:APPVEYOR_REPO_COMMIT
|
||||
|
|
Loading…
Reference in a new issue