Skip to content

Commit

Permalink
Merge pull request #21 from AngleSharp/devel
Browse files Browse the repository at this point in the history
Release 0.12.1
  • Loading branch information
FlorianRappl authored May 14, 2019
2 parents fc649d4 + 2d5600f commit 724a8a1
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 19 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 0.12.1

Released on Wednesday, May 15 2019.

- Binary version fix

# 0.12.0

Released on Thursday, May 2 2019.
Expand Down
34 changes: 18 additions & 16 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,20 @@ Task("Restore-Packages")
.IsDependentOn("Clean")
.Does(() =>
{
NuGetRestore("./src/AngleSharp.Io.sln", new NuGetRestoreSettings {
ToolPath = "tools/nuget.exe"
NuGetRestore("./src/AngleSharp.Io.sln", new NuGetRestoreSettings
{
ToolPath = "tools/nuget.exe",
});
});

Task("Build")
.IsDependentOn("Restore-Packages")
.Does(() =>
{
DotNetCoreBuild("./src/AngleSharp.Io.sln", new DotNetCoreBuildSettings() {
Configuration = configuration
ReplaceRegexInFiles("./src/Directory.Build.props", "(?<=<Version>)(.+?)(?=</Version>)", version);
DotNetCoreBuild("./src/AngleSharp.Io.sln", new DotNetCoreBuildSettings
{
Configuration = configuration,
});
});

Expand All @@ -70,7 +73,7 @@ Task("Run-Unit-Tests")
{
var settings = new DotNetCoreTestSettings
{
Configuration = configuration
Configuration = configuration,
};

if (isRunningOnAppVeyor)
Expand All @@ -96,7 +99,7 @@ Task("Copy-Files")
CopyFiles(new FilePath[]
{
buildDir + Directory(framework) + File("AngleSharp.Io.dll"),
buildDir + Directory(framework) + File("AngleSharp.Io.xml")
buildDir + Directory(framework) + File("AngleSharp.Io.xml"),
}, target);

CopyFiles(new FilePath[] { "src/AngleSharp.Io.nuspec" }, nugetRoot);
Expand All @@ -107,12 +110,8 @@ Task("Create-Package")
.Does(() =>
{
var nugetExe = GetFiles("./tools/**/nuget.exe").FirstOrDefault()
?? (isRunningOnAppVeyor ? GetFiles("C:\\Tools\\NuGet3\\nuget.exe").FirstOrDefault() : null);

if (nugetExe == null)
{
throw new InvalidOperationException("Could not find nuget.exe.");
}
?? (isRunningOnAppVeyor ? GetFiles("C:\\Tools\\NuGet3\\nuget.exe").FirstOrDefault() : null)
?? throw new InvalidOperationException("Could not find nuget.exe.");

var nuspec = nugetRoot + File("AngleSharp.Io.nuspec");

Expand All @@ -121,7 +120,10 @@ Task("Create-Package")
Version = version,
OutputDirectory = nugetRoot,
Symbols = false,
Properties = new Dictionary<String, String> { { "Configuration", configuration } }
Properties = new Dictionary<String, String>
{
{ "Configuration", configuration },
},
});
});

Expand All @@ -142,7 +144,7 @@ Task("Publish-Package")
NuGetPush(nupkg, new NuGetPushSettings
{
Source = "https://nuget.org/api/v2/package",
ApiKey = apiKey
ApiKey = apiKey,
});
}
});
Expand All @@ -161,7 +163,7 @@ Task("Publish-Release")

var github = new GitHubClient(new ProductHeaderValue("AngleSharpCakeBuild"))
{
Credentials = new Credentials(githubToken)
Credentials = new Credentials(githubToken),
};

var newRelease = github.Repository.Release;
Expand All @@ -170,7 +172,7 @@ Task("Publish-Release")
Name = version,
Body = String.Join(Environment.NewLine, releaseNotes.Notes),
Prerelease = false,
TargetCommitish = "master"
TargetCommitish = "master",
}).Wait();
});

Expand Down
2 changes: 1 addition & 1 deletion src/AngleSharp.Io.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<copyright>Copyright 2016-2019, AngleSharp</copyright>
<tags>html html5 css css3 dom requester http https io filesystem storage httpclient cache</tags>
<dependencies>
<dependency id="AngleSharp" version="0.12.0" />
<dependency id="AngleSharp" version="0.12.1" />
</dependencies>
</metadata>
</package>
2 changes: 1 addition & 1 deletion src/AngleSharp.Io/AngleSharp.Io.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AngleSharp" Version="0.12.0" />
<PackageReference Include="AngleSharp" Version="0.12.1" />
</ItemGroup>

<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<PropertyGroup>
<Description>Providers additional requesters and IO helpers for AngleSharp.</Description>
<Product>AngleSharp.Io</Product>
<Version>0.10.1</Version>
<Version>0.12.1</Version>
</PropertyGroup>
</Project>

0 comments on commit 724a8a1

Please sign in to comment.