From 82675749d7158d00606a0515d80e8b31e188511f Mon Sep 17 00:00:00 2001 From: Kevin Jump Date: Tue, 13 Jul 2021 20:02:34 +0100 Subject: [PATCH] Include build folder. --- .gitignore | 1 - build/build.ps1 | 11 ++++++++ .../build/Our.Umbraco.LinkedPages.targets | 27 +++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 build/build.ps1 create mode 100644 src/Our.Umbraco.LinkedPages/build/Our.Umbraco.LinkedPages.targets diff --git a/.gitignore b/.gitignore index eff1e88..5517549 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,6 @@ App_Data/ Bin/ # Config/ Archive/ -build/ [Mm]edia/* ![Mm]edia/[Ww]eb.config diff --git a/build/build.ps1 b/build/build.ps1 new file mode 100644 index 0000000..d253605 --- /dev/null +++ b/build/build.ps1 @@ -0,0 +1,11 @@ +param($version, $suffix, $env='release', [switch]$push=$false) + +$fullVersion = -join($version, '-', $suffix) +$outFolder = ".\$fullVersion" +$packageProj = "..\src\Our.Umbraco.LinkedPages\Our.Umbraco.LinkedPages.csproj" + +dotnet pack $packageProj -c $env -o $outFolder /p:ContinuousIntegrationBuild=true,version=$fullVersion + +if ($push) { + .\nuget.exe push "$outFolder\*.nupkg" -ApiKey AzureDevOps -src https://pkgs.dev.azure.com/jumoo/Public/_packaging/nightly/nuget/v3/index.json +} \ No newline at end of file diff --git a/src/Our.Umbraco.LinkedPages/build/Our.Umbraco.LinkedPages.targets b/src/Our.Umbraco.LinkedPages/build/Our.Umbraco.LinkedPages.targets new file mode 100644 index 0000000..e45a005 --- /dev/null +++ b/src/Our.Umbraco.LinkedPages/build/Our.Umbraco.LinkedPages.targets @@ -0,0 +1,27 @@ + + + + $(MSBuildThisFileDirectory)..\content\App_Plugins\LinkedPages\**\*.* + + + + + + + + + + + + + + + + + + + + \ No newline at end of file