diff --git a/CHANGELOG.md b/CHANGELOG.md index 8abc09a..478f43e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 1ac7c14..05ea086 100644 --- a/README.md +++ b/README.md @@ -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(x => x.From().Build); } ``` diff --git a/ricaun.Nuke/Components/ICompileExample.cs b/ricaun.Nuke/Components/ICompileExample.cs index 2eeaffd..07fd302 100644 --- a/ricaun.Nuke/Components/ICompileExample.cs +++ b/ricaun.Nuke/Components/ICompileExample.cs @@ -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); + } }); }); } diff --git a/ricaun.Nuke/Components/IHazExample.cs b/ricaun.Nuke/Components/IHazExample.cs index c212968..4e5ab34 100644 --- a/ricaun.Nuke/Components/IHazExample.cs +++ b/ricaun.Nuke/Components/IHazExample.cs @@ -23,6 +23,12 @@ public interface IHazExample : IHazSolution, INukeBuild [Parameter] string Name => ValueInjectionUtility.TryGetValue(() => Name) ?? $"{Solution.Name}.Example"; + /// + /// ReleaseExample (default: true) + /// + [Parameter] + bool ReleaseExample => ValueInjectionUtility.TryGetValue(() => ReleaseExample) ?? true; + /// /// ExampleDirectory /// diff --git a/ricaun.Nuke/ricaun.Nuke.csproj b/ricaun.Nuke/ricaun.Nuke.csproj index bffae00..7d844da 100644 --- a/ricaun.Nuke/ricaun.Nuke.csproj +++ b/ricaun.Nuke/ricaun.Nuke.csproj @@ -7,7 +7,7 @@ ricaun.Nuke - 0.0.12 + 0.0.13