dotnet-installer/build/publish/FinishBuild.targets

46 lines
2.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="FinishBuild"
Condition="'$(IsNotOrchestratedPublish)' == 'true'"
DependsOnTargets="CheckIfAllBuildsHavePublished;
FinalizeBuild" />
<Target Name="CheckIfAllBuildsHavePublished"
DependsOnTargets="SetBadgeProps">
<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)"
Coherent="$(Coherent)" />
<CopyBlobsToLatest AccountName="$(ChecksumCloudDropAccountName)"
AccountKey="$(ChecksumCloudDropAccessToken)"
ContainerName="$(ChecksumContainerName)"
NugetVersion="$(FullNugetVersion)"
Channel="$(Channel)"
CommitHash="$(CommitHash)"
Coherent="$(Coherent)" />
<!-- Core-Sdk does not produce a core-sdk package that can be used to signal on
dotnet/versions that a new core-sdk version is available. Instead,
just publish the latest version and list a "core-sdk" package with version -->
<WriteVersionToVersionsRepo BranchName="$(BranchName)"
Name="core-sdk"
Version="$(FullNugetVersion)"
VersionsRepoPath="build-info/dotnet/core-sdk/$(BranchName)"
GitHubPassword="$(GITHUB_PASSWORD)"
Condition=" '$(GITHUB_PASSWORD)' != '' " />
</Target>
</Project>