예제 #1
0
        private static void UpdateVersionsRepo(BuildTargetContext c)
        {
            string githubAuthToken  = EnvVars.EnsureVariable("GITHUB_PASSWORD");
            string nupkgFilePath    = Dirs.Packages;
            string branchName       = c.BuildContext.Get <string>("BranchName");
            string versionsRepoPath = $"build-info/dotnet/cli/{branchName}/Latest";

            VersionRepoUpdater repoUpdater = new VersionRepoUpdater(githubAuthToken);

            repoUpdater.UpdatePublishedVersions(nupkgFilePath, versionsRepoPath).Wait();
        }
예제 #2
0
        public static BuildTargetResult UpdateVersionsRepo(BuildTargetContext c)
        {
            string githubAuthToken  = EnvVars.EnsureVariable("GITHUB_PASSWORD");
            string nupkgFilePath    = EnvVars.EnsureVariable("NUPKG_FILE_PATH");
            string versionsRepoPath = EnvVars.EnsureVariable("VERSIONS_REPO_PATH");

            VersionRepoUpdater repoUpdater = new VersionRepoUpdater(githubAuthToken);

            repoUpdater.UpdatePublishedVersions(nupkgFilePath, versionsRepoPath).Wait();

            return(c.Success());
        }
예제 #3
0
        public override bool Execute()
        {
            string githubAuthToken  = EnvVars.EnsureVariable("GITHUB_PASSWORD");
            string nupkgFilePath    = Dirs.Packages;
            string branchName       = BranchName;
            string versionsRepoPath = $"build-info/dotnet/cli/{branchName}/Latest";

            VersionRepoUpdater repoUpdater = new VersionRepoUpdater(githubAuthToken);

            repoUpdater.UpdatePublishedVersions(nupkgFilePath, versionsRepoPath).Wait();

            return(true);
        }
예제 #4
0
        private static void UpdateVersionsRepo(BuildTargetContext c)
        {
            string githubAuthToken = EnvVars.EnsureVariable("GITHUB_PASSWORD");
            string nupkgFilePath = Dirs.Packages;
            string branchName = c.BuildContext.Get<string>("BranchName");
            string versionsRepoPath = $"build-info/dotnet/cli/{branchName}/Latest";

            VersionRepoUpdater repoUpdater = new VersionRepoUpdater(githubAuthToken);
            repoUpdater.UpdatePublishedVersions(nupkgFilePath, versionsRepoPath).Wait();
        }