2016-07-08 23:02:03 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2016-10-12 19:25:06 +00:00
|
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/FinishBuild.targets" />
|
2016-08-09 13:28:23 +00:00
|
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/PublishContent.targets" />
|
2017-02-23 17:26:14 +00:00
|
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/PublishDebian.targets" />
|
2017-02-14 23:42:13 +00:00
|
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/Badge.targets" />
|
|
|
|
<Import Project="$(MSBuildThisFileDirectory)/publish/Checksum.targets" />
|
2016-07-08 23:02:03 +00:00
|
|
|
|
|
|
|
<!-- PUBLISH_TO_AZURE_BLOB env variable set by CI -->
|
|
|
|
<Target Name="Publish"
|
|
|
|
Condition=" '$(PUBLISH_TO_AZURE_BLOB)' != '' "
|
2016-07-15 20:44:11 +00:00
|
|
|
DependsOnTargets="Init;
|
2016-07-08 23:02:03 +00:00
|
|
|
Package;
|
|
|
|
PublishArtifacts;
|
2016-07-15 20:44:11 +00:00
|
|
|
FinishBuild" />
|
|
|
|
|
|
|
|
<!-- UploadToAzure target comes from Build Tools -->
|
2016-07-22 23:01:32 +00:00
|
|
|
<Target Name="PublishArtifacts"
|
2017-02-23 00:54:15 +00:00
|
|
|
DependsOnTargets="GenerateVersionBadge;
|
2016-07-22 23:01:32 +00:00
|
|
|
GatherItemsForPattern;
|
2016-10-12 19:25:06 +00:00
|
|
|
GenerateChecksums;
|
|
|
|
UploadArtifactsToAzure;
|
|
|
|
UploadChecksumsToAzure;
|
2016-07-15 20:44:11 +00:00
|
|
|
PublishDebFilesToDebianRepo;
|
|
|
|
PublishCliVersionBadge" />
|
|
|
|
|
2016-07-08 23:02:03 +00:00
|
|
|
<Target Name="GatherItemsForPattern">
|
|
|
|
<ItemGroup>
|
|
|
|
<ForPublishing Include="@(GeneratedInstallers)" />
|
|
|
|
<ForPublishing Include="%(GenerateArchivesInputsOutputs.Outputs)" />
|
2017-02-15 19:53:31 +00:00
|
|
|
<ForPublishing Include="$(PackagesDirectory)/Microsoft*.nupkg" Condition=" '$(PUBLISH_NUPKG_TO_AZURE_BLOB)' != '' " />
|
2016-07-08 23:02:03 +00:00
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<ForPublishing>
|
2017-02-09 00:53:01 +00:00
|
|
|
<RelativeBlobPath>$(Product)/$(FullNugetVersion)/$([System.String]::Copy('%(Filename)%(Extension)').Replace('\' ,'/'))</RelativeBlobPath>
|
2016-07-08 23:02:03 +00:00
|
|
|
</ForPublishing>
|
|
|
|
</ItemGroup>
|
2016-07-22 23:01:32 +00:00
|
|
|
</Target>
|
2016-07-08 23:02:03 +00:00
|
|
|
|
|
|
|
<Target Name="PublishCliVersionBadge">
|
|
|
|
<ItemGroup>
|
|
|
|
<CliVersionBadgeToUpload Include="$(VersionBadge)" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<CliVersionBadgeToUpload>
|
2017-02-09 00:53:01 +00:00
|
|
|
<RelativeBlobPath>$(Product)/$(FullNugetVersion)/$([System.String]::Copy('%(Filename)%(Extension)').Replace('\' ,'/'))</RelativeBlobPath>
|
2016-07-08 23:02:03 +00:00
|
|
|
</CliVersionBadgeToUpload>
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<UploadToAzure
|
2016-10-12 19:25:06 +00:00
|
|
|
AccountKey="$(ArtifactCloudDropAccessToken)"
|
|
|
|
AccountName="$(ArtifactCloudDropAccountName)"
|
|
|
|
ContainerName="$(ArtifactContainerName)"
|
2016-09-23 02:02:53 +00:00
|
|
|
Items="@(CliVersionBadgeToUpload)"
|
|
|
|
Overwrite="$(OverwriteOnPublish)" />
|
2016-07-15 18:40:56 +00:00
|
|
|
|
2016-07-15 20:44:11 +00:00
|
|
|
<SetBlobPropertiesBasedOnFileType
|
2016-10-12 19:25:06 +00:00
|
|
|
AccountKey="$(ArtifactCloudDropAccessToken)"
|
|
|
|
AccountName="$(ArtifactCloudDropAccountName)"
|
|
|
|
ContainerName="$(ArtifactContainerName)"
|
2016-07-15 18:40:56 +00:00
|
|
|
Items="@(CliVersionBadgeToUpload)" />
|
2016-07-08 23:02:03 +00:00
|
|
|
</Target>
|
|
|
|
</Project>
|