21471aa956
We were only building nupkgs on windows, which meant if a non-windows machine was the last leg to finish, we were writing a blank file to the versions repo. Fix #4399
37 lines
1.8 KiB
XML
37 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Target Name="FinishBuild"
|
|
DependsOnTargets="CheckIfAllBuildsHavePublished;
|
|
FinalizeBuild" />
|
|
|
|
<Target Name="CheckIfAllBuildsHavePublished">
|
|
<CheckIfAllBuildsHavePublished AccountKey="$(ArtifactCloudDropAccessToken)"
|
|
AccountName="$(ArtifactCloudDropAccountName)"
|
|
ContainerName="$(ArtifactContainerName)"
|
|
NugetVersion="$(FullNugetVersion)"
|
|
VersionBadgeMoniker="$(VersionBadgeMoniker)">
|
|
<Output TaskParameter="HaveAllBuildsPublished" PropertyName="HaveAllBuildsPublished" />
|
|
</CheckIfAllBuildsHavePublished>
|
|
</Target>
|
|
|
|
<Target Name="FinalizeBuild"
|
|
Condition=" '$(HaveAllBuildsPublished)' == 'True' ">
|
|
<CopyBlobsToLatest AccountName="$(ArtifactCloudDropAccountName)"
|
|
AccountKey="$(ArtifactCloudDropAccessToken)"
|
|
ContainerName="$(ArtifactContainerName)"
|
|
NugetVersion="$(FullNugetVersion)"
|
|
Channel="$(Channel)"
|
|
CommitHash="$(CommitHash)" />
|
|
|
|
<CopyBlobsToLatest AccountName="$(ChecksumCloudDropAccountName)"
|
|
AccountKey="$(ChecksumCloudDropAccessToken)"
|
|
ContainerName="$(ChecksumContainerName)"
|
|
NugetVersion="$(FullNugetVersion)"
|
|
Channel="$(Channel)"
|
|
CommitHash="$(CommitHash)" />
|
|
|
|
<UpdateVersionsRepo BranchName="$(BranchName)"
|
|
PackagesDirectory="$(PackagesDirectory)"
|
|
GitHubPassword="$(GITHUB_PASSWORD)" />
|
|
</Target>
|
|
</Project>
|