-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ App_Data/ | |
Bin/ | ||
# Config/ | ||
Archive/ | ||
build/ | ||
[Mm]edia/* | ||
![Mm]edia/[Ww]eb.config | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
27 changes: 27 additions & 0 deletions
27
src/Our.Umbraco.LinkedPages/build/Our.Umbraco.LinkedPages.targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<PropertyGroup> | ||
<LinkedPagesPackageContentFilesPath>$(MSBuildThisFileDirectory)..\content\App_Plugins\LinkedPages\**\*.*</LinkedPagesPackageContentFilesPath> | ||
</PropertyGroup> | ||
|
||
<Target Name="CopyLinkedPagesPackageAssets" BeforeTargets="Build"> | ||
<ItemGroup> | ||
<LinkedPagesPackageContentFiles Include="$(LinkedPagesPackageContentFilesPath)" /> | ||
</ItemGroup> | ||
<Message Text="Copying LinkedPages Package files: $(LinkedPagesPackageContentFilesPath) - #@(LinkedPagesPackageContentFiles->Count()) files" Importance="high" /> | ||
<Copy | ||
SourceFiles="@(LinkedPagesPackageContentFiles)" | ||
DestinationFiles="@(LinkedPagesPackageContentFiles->'$(MSBuildProjectDirectory)\App_Plugins\LinkedPages\%(RecursiveDir)%(Filename)%(Extension)')" | ||
SkipUnchangedFiles="true" /> | ||
|
||
</Target> | ||
|
||
<Target Name="ClearLinkedPagesPackageAssets" BeforeTargets="Clean"> | ||
<ItemGroup> | ||
<LinkedPagesPackageDir Include="$(MSBuildProjectDirectory)\App_Plugins\LinkedPages\" /> | ||
</ItemGroup> | ||
<Message Text="Clear old LinkedPages Package data" Importance="high" /> | ||
<RemoveDir Directories="@(LinkedPagesPackageDir)" /> | ||
</Target> | ||
|
||
</Project> |