Skip to content

Commit

Permalink
Merge pull request #16 from ricaun-io/develop
Browse files Browse the repository at this point in the history
Update to 0.0.13
  • Loading branch information
ricaun authored Dec 21, 2021
2 parents c2e1a7c + 5ee4fc5 commit e9b4c20
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [0.0.13] / 2021-12-21
- Add `IHazExample.ReleaseExample`
- Change Readme

## [0.0.12] / 2021-12-21
- Add Documentation on the main project
- Add `xml` DocumentationFile
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ using ricaun.Nuke.Components;
[CheckBuildProjectConfigurations]
class Build : NukeBuild, IPublishPack
{
string IHazContent.Folder => "Release";
string IHazRelease.Folder => "ReleasePack";
// string IHazContent.Folder => "Release";
// string IHazRelease.Folder => "ReleaseFiles";
public static int Main() => Execute<Build>(x => x.From<IPublishPack>().Build);
}
```
Expand Down
7 changes: 5 additions & 2 deletions ricaun.Nuke/Components/ICompileExample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ public interface ICompileExample : IHazExample, ICompile, ISign, IRelease, IHazC
SignProject(project);
var folder = ExampleDirectory;
var fileName = project.Name;
var zipFile = ReleaseDirectory / $"{fileName}.zip";
ZipExtension.CreateFromDirectory(folder, zipFile);
if (ReleaseExample)
{
var zipFile = ReleaseDirectory / $"{fileName}.zip";
ZipExtension.CreateFromDirectory(folder, zipFile);
}
});
});
}
Expand Down
6 changes: 6 additions & 0 deletions ricaun.Nuke/Components/IHazExample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ public interface IHazExample : IHazSolution, INukeBuild
[Parameter]
string Name => ValueInjectionUtility.TryGetValue(() => Name) ?? $"{Solution.Name}.Example";

/// <summary>
/// ReleaseExample (default: true)
/// </summary>
[Parameter]
bool ReleaseExample => ValueInjectionUtility.TryGetValue<bool?>(() => ReleaseExample) ?? true;

/// <summary>
/// ExampleDirectory
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion ricaun.Nuke/ricaun.Nuke.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<PropertyGroup>
<PackageId>ricaun.Nuke</PackageId>
<Version>0.0.12</Version>
<Version>0.0.13</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit e9b4c20

Please sign in to comment.