From 833e18345d88a6ff2d72749e8b8e4018f221190c Mon Sep 17 00:00:00 2001
From: shahasad <43590019+shahasad@users.noreply.github.com>
Date: Fri, 30 Aug 2019 11:25:55 -0700
Subject: [PATCH] Publish perf tool with nightly build (#1728)
---
.../Microsoft.ML.OnnxRuntime.csproj | 14 ++++++++++++++
.../github/azure-pipelines/nuget/templates/cpu.yml | 10 ++++++++++
2 files changed, 24 insertions(+)
diff --git a/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj b/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj
index 7c96c5690d..be6cca8b86 100644
--- a/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj
+++ b/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj
@@ -119,6 +119,20 @@
Pack="true"
Visible="false"
/>
+
+
+
+
diff --git a/tools/ci_build/github/azure-pipelines/nuget/templates/cpu.yml b/tools/ci_build/github/azure-pipelines/nuget/templates/cpu.yml
index 72377b2068..7f3aa87f1e 100644
--- a/tools/ci_build/github/azure-pipelines/nuget/templates/cpu.yml
+++ b/tools/ci_build/github/azure-pipelines/nuget/templates/cpu.yml
@@ -177,6 +177,15 @@ jobs:
downloadPath: $(Build.BinariesDirectory)/nuget-artifact/final-package
gitCommitHash: $(OnnxRuntimeGitCommitHashShort)
+
+ - task: PowerShell@2
+ displayName: 'Get Current Date'
+ inputs:
+ targetType: 'inline'
+ script: |
+ $date = $(Get-Date -Format "yyyy-MM-dd")
+ Write-Host "##vso[task.setvariable variable=CurrentDate]$date"
+
- task: AzureFileCopy@3
displayName: 'Copy Signed NuGet Package to Blob Store'
condition: ne(variables['IsReleaseBuild'], 'true') # rlease build has a different package naming scheme
@@ -186,4 +195,5 @@ jobs:
destination: azureBlob
storage: ortpackages
containerName: ortpackages
+ blobPrefix: '$(CurrentDate)/'