Skip to content

Commit 428d1a9

Browse files
authored
Merge pull request #20 from umbraco/feature/semrush-build
Feature/semrush build
2 parents bb00ace + dd978ae commit 428d1a9

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

azure-pipeline - SEO.SemrushTools.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
trigger:
2-
- main
2+
- feature/semrush-build
33

44
pool:
55
vmImage: 'windows-latest'
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<PropertyGroup>
3+
<SemrushPropertyEditorFilesPath>
4+
$(MSBuildThisFileDirectory)..\App_Plugins\UmbracoCms.Integrations\SEO\Semrush\**\*.*
5+
</SemrushPropertyEditorFilesPath>
6+
</PropertyGroup>
7+
<Target Name="CopySemrushPropertyEditorAssets" BeforeTargets="Build">
8+
<ItemGroup>
9+
<SemrushPropertyEditorFiles Include="$(SemrushPropertyEditorFilesPath)" />
10+
</ItemGroup>
11+
<Message
12+
Text="Copying Semrush Property Editor files: $(SemrushPropertyEditorFilesPath) - #@(SemrushPropertyEditorFiles->Count()) files"
13+
Importance="high" />
14+
<Copy SourceFiles="@(SemrushPropertyEditorFiles)"
15+
DestinationFiles="@(SemrushPropertyEditorFiles->'$(MSBuildProjectDirectory)\App_Plugins\UmbracoCms.Integrations\SEO\Semrush\%(RecursiveDir)%(Filename)%(Extension)')"
16+
SkipUnchangedFiles="true" />
17+
18+
</Target>
19+
20+
<Target Name="ClearSemrushPropertyEditorAssets" BeforeTargets="Clean">
21+
<ItemGroup>
22+
<SemrushPropertyEditorDir
23+
Include="$(MSBuildProjectDirectory)\App_Plugins\UmbracoCms\SEO\Semrush\" />
24+
</ItemGroup>
25+
<Message Text="Clear old Semrush Property Editor data" Importance="high" />
26+
<RemoveDir Directories="@(SemrushPropertyEditorDir)" />
27+
</Target>
28+
29+
</Project>

0 commit comments

Comments
 (0)