[interp] Share more wrappers for different interp in signatures (#14596)
[mono-project.git] / eng / common / PublishToPackageFeed.proj
bloba1b1333723eb96aafd203cb9fe55c6d408f472f7
1 <!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
2 <Project Sdk="Microsoft.NET.Sdk">
3   <!--
4     This MSBuild file is intended to be used as the body of the default 
5     publishing release pipeline. The release pipeline will use this file
6     to invoke the PushToStaticFeed task that will read the build asset
7     manifest and publish the assets described in the manifest to
8     informed target feeds.
9   -->
11   <PropertyGroup>
12     <TargetFramework>netcoreapp2.1</TargetFramework>
13   </PropertyGroup>
15   <Import Project="$(MSBuildThisFileDirectory)DefaultVersions.props" Condition="Exists('$(MSBuildThisFileDirectory)DefaultVersions.props')" />
17   <!--
18     This won't be necessary once we solve this issue:
19     https://github.com/dotnet/arcade/issues/2266
20   -->
21   <Import Project="$(MSBuildThisFileDirectory)ArtifactsCategory.props" Condition="Exists('$(MSBuildThisFileDirectory)ArtifactsCategory.props')" />
22   
23   <Import Project="$(NuGetPackageRoot)microsoft.dotnet.build.tasks.feed\$(MicrosoftDotNetBuildTasksFeedVersion)\build\Microsoft.DotNet.Build.Tasks.Feed.targets" />
25   <Target Name="PublishToFeed">
26     <Error Condition="'$(ArtifactsCategory)' == ''" Text="ArtifactsCategory: The artifacts' category produced by the build wasn't provided." />
27     <Error Condition="'$(AccountKeyToStaticFeed)' == ''" Text="AccountKeyToStaticFeed: Account key for target feed wasn't provided." />
28     <Error Condition="'$(ManifestsBasePath)' == ''" Text="Full path to asset manifests directory wasn't provided." />
29     <Error Condition="'$(BlobBasePath)' == '' AND '$(PackageBasePath)' == ''" Text="A valid full path to BlobBasePath of PackageBasePath is required." />
31     <ItemGroup>
32       <!-- Include all manifests found in the manifest folder. -->
33       <ManifestFiles Include="$(ManifestsBasePath)*.xml" />
34     </ItemGroup>
36     <Error Condition="'@(ManifestFiles)' == ''" Text="No manifest file was found in the provided path: $(ManifestsBasePath)" />
38     <!--
39       For now the type of packages being published will be informed for the whole build.
40       Eventually this will be specified on a per package basis:
41       TODO: https://github.com/dotnet/arcade/issues/2266
42     -->
43     <PropertyGroup>
44       <TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == '.NETCORE'">https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json</TargetStaticFeed>
45       <TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == '.NETCOREVALIDATION'">https://dotnetfeed.blob.core.windows.net/arcade-validation/index.json</TargetStaticFeed>
46       <TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'ASPNETCORE'">https://dotnetfeed.blob.core.windows.net/aspnet-aspnetcore/index.json</TargetStaticFeed>
47       <TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'ASPNETCORETOOLING'">https://dotnetfeed.blob.core.windows.net/aspnet-aspnetcore-tooling/index.json</TargetStaticFeed>
48       <TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'ENTITYFRAMEWORKCORE'">https://dotnetfeed.blob.core.windows.net/aspnet-entityframeworkcore/index.json</TargetStaticFeed>
49       <TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'ASPNETEXTENSIONS'">https://dotnetfeed.blob.core.windows.net/aspnet-extensions/index.json</TargetStaticFeed>
50       <TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'CORECLR'">https://dotnetfeed.blob.core.windows.net/dotnet-coreclr/index.json</TargetStaticFeed>
51       <TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'CORESDK'">https://dotnetfeed.blob.core.windows.net/dotnet-sdk/index.json</TargetStaticFeed>
52       <TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'TOOLSINTERNAL'">https://dotnetfeed.blob.core.windows.net/dotnet-tools-internal/index.json</TargetStaticFeed>
53       <TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'TOOLSET'">https://dotnetfeed.blob.core.windows.net/dotnet-toolset/index.json</TargetStaticFeed>
54       <TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'WINDOWSDESKTOP'">https://dotnetfeed.blob.core.windows.net/dotnet-windowsdesktop/index.json</TargetStaticFeed>
55       <TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'NUGETCLIENT'">https://dotnetfeed.blob.core.windows.net/nuget-nugetclient/index.json</TargetStaticFeed>
56       <TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'ASPNETENTITYFRAMEWORK6'">https://dotnetfeed.blob.core.windows.net/aspnet-entityframework6/index.json</TargetStaticFeed>
57       <TargetStaticFeed Condition="'$(ArtifactsCategory.ToUpper())' == 'ASPNETBLAZOR'">https://dotnetfeed.blob.core.windows.net/aspnet-blazor/index.json</TargetStaticFeed>
58     </PropertyGroup>
60     <Error 
61       Condition="'$(TargetStaticFeed)' == ''" 
62       Text="'$(ArtifactsCategory)' wasn't recognized as a valid artifact category. Valid categories are: '.NetCore' and '.NetCoreValidation'" />
64     <!-- Iterate publishing assets from each manifest file. -->
65     <PushArtifactsInManifestToFeed
66       ExpectedFeedUrl="$(TargetStaticFeed)"
67       AccountKey="$(AccountKeyToStaticFeed)"
68       BARBuildId="$(BARBuildId)"
69       MaestroApiEndpoint="$(MaestroApiEndpoint)"
70       BuildAssetRegistryToken="$(BuildAssetRegistryToken)"
71       Overwrite="$(OverrideAssetsWithSameName)"
72       PassIfExistingItemIdentical="$(PassIfExistingItemIdentical)"
73       MaxClients="$(MaxParallelUploads)"
74       UploadTimeoutInMinutes="$(MaxUploadTimeoutInMinutes)"
75       AssetManifestPath="%(ManifestFiles.Identity)"
76       BlobAssetsBasePath="$(BlobBasePath)"
77       PackageAssetsBasePath="$(PackageBasePath)"/>
78   </Target>
80   <ItemGroup>
81     <PackageReference Include="Microsoft.DotNet.Build.Tasks.Feed" Version="$(MicrosoftDotNetBuildTasksFeedVersion)" />
82   </ItemGroup>
83 </Project>