private static void DownloadPackagesForPush(string pathToDownload) { AzurePublisherTool.DownloadFiles(pathToDownload, ".nupkg", Dirs.PackagesNoRID); string pushedSemaphore = Path.Combine(Dirs.PackagesNoRID, PackagePushedSemaphoreFileName); File.WriteAllText(pushedSemaphore, $"Packages pushed for build {pathToDownload}"); AzurePublisherTool.PublishFile(pathToDownload + "/" + PackagePushedSemaphoreFileName, pushedSemaphore); }
private static void PublishCoreHostPackagesToFeed() { var hostBlob = $"{Channel}/Binaries/{SharedFrameworkNugetVersion}"; Directory.CreateDirectory(Dirs.PackagesNoRID); AzurePublisherTool.DownloadFiles(hostBlob, ".nupkg", Dirs.PackagesNoRID); string nugetFeedUrl = EnvVars.EnsureVariable("NUGET_FEED_URL"); string apiKey = EnvVars.EnsureVariable("NUGET_API_KEY"); NuGetUtil.PushPackages(Dirs.PackagesNoRID, nugetFeedUrl, apiKey); }
private static void PublishCoreHostPackagesToFeed() { var hostBlob = $"{Channel}/Binaries/{SharedFrameworkNugetVersion}"; Directory.CreateDirectory(Dirs.PackagesNoRID); AzurePublisherTool.DownloadFiles(hostBlob, ".nupkg", Dirs.PackagesNoRID); string nugetFeedUrl = EnvVars.EnsureVariable("NUGET_FEED_URL"); string apiKey = EnvVars.EnsureVariable("NUGET_API_KEY"); NuGetUtil.PushPackages(Dirs.PackagesNoRID, nugetFeedUrl, apiKey); string githubAuthToken = EnvVars.EnsureVariable("GITHUB_PASSWORD"); VersionRepoUpdater repoUpdater = new VersionRepoUpdater(githubAuthToken); repoUpdater.UpdatePublishedVersions(Dirs.PackagesNoRID, $"build-info/dotnet/core-setup/{BranchName}/Latest").Wait(); }