Skip to content

Commit

Permalink
Merge pull request #78 from icarus-consulting/i77-fixNamespacesForXml…
Browse files Browse the repository at this point in the history
…Slice

Fixes namespace handling for XMLSlice and XMLCursor
  • Loading branch information
MSE1188 authored Aug 14, 2024
2 parents 63f5fa2 + cd480a3 commit d9e89f1
Show file tree
Hide file tree
Showing 8 changed files with 510 additions and 335 deletions.
44 changes: 0 additions & 44 deletions build.cake
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#tool nuget:?package=GitReleaseManager&version=0.11
#tool nuget:?package=OpenCover&version=4.7.922
#tool nuget:?package=Codecov&version=1.12.3
#addin nuget:?package=Cake.Figlet&version=1.3.1
Expand Down Expand Up @@ -46,7 +45,6 @@ var nuGetSource = "https://api.nuget.org/v3/index.json";
var appVeyorNuGetFeed = "https://ci.appveyor.com/nuget/icarus/api/v2/package";

// API key tokens for deployment
var gitHubToken = "";
var nugetReleaseToken = "";
var appVeyorFeedToken = "";
var codeCovToken = "";
Expand Down Expand Up @@ -344,11 +342,6 @@ Task("Credentials")
{
Information(Figlet("Credentials"));

gitHubToken = EnvironmentVariable("GITHUB_TOKEN");
if (string.IsNullOrEmpty(gitHubToken))
{
throw new Exception("Environment variable 'GITHUB_TOKEN' is not set");
}
nugetReleaseToken = EnvironmentVariable("NUGET_TOKEN");
if (string.IsNullOrEmpty(nugetReleaseToken))
{
Expand All @@ -366,42 +359,6 @@ Task("Credentials")
}
});


///////////////////////////////////////////////////////////////////////////////
// GitHub Release
///////////////////////////////////////////////////////////////////////////////
Task("GitHubRelease")
.WithCriteria(() => isAppVeyor && BuildSystem.AppVeyor.Environment.Repository.Tag.IsTag)
.IsDependentOn("Version")
.IsDependentOn("NuGet")
.IsDependentOn("Credentials")
.Does(() =>
{
Information(Figlet("GitHub Release"));

GitReleaseManagerCreate(
gitHubToken,
owner,
repository,
new GitReleaseManagerCreateSettings {
Milestone = version,
Name = version,
Prerelease = false,
TargetCommitish = "main"
}
);
var nugets = string.Join(",", GetFiles("./artifacts/*.*nupkg").Select(f => f.FullPath) );
Information($"Release files:{Environment.NewLine} " + nugets.Replace(",", $"{Environment.NewLine} "));
GitReleaseManagerAddAssets(
gitHubToken,
owner,
repository,
version,
nugets
);
GitReleaseManagerPublish(gitHubToken, owner, repository, version);
});

///////////////////////////////////////////////////////////////////////////////
// NuGet Feed
///////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -454,7 +411,6 @@ Task("Default")
.IsDependentOn("UploadCoverage")
.IsDependentOn("AssertPackages")
.IsDependentOn("NuGet")
.IsDependentOn("GitHubRelease")
.IsDependentOn("NuGetFeed");

RunTarget(target);
Loading

0 comments on commit d9e89f1

Please sign in to comment.