-
Notifications
You must be signed in to change notification settings - Fork 21
/
azure-pipeline - SEO.SemrushTools.yml
61 lines (52 loc) · 1.55 KB
/
azure-pipeline - SEO.SemrushTools.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
trigger:
- main
pool:
vmImage: 'windows-latest'
variables:
projectName: 'Umbraco.Cms.Integrations.SEO.Semrush'
project: 'src/$(projectName)/$(projectName).csproj'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
displayName: 'Install NuGet'
- task: DotNetCoreCLI@2
displayName: 'NuGet Restore'
inputs:
command: 'restore'
feedsToUse: 'select'
projects: '$(project)'
includeNuGetOrg: true
- task: VSBuild@1
displayName: 'Build Project'
inputs:
solution: '$(project)'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'Create NuGet Package'
inputs:
command: 'pack'
arguments: '--configuration $(buildConfiguration)'
packagesToPack: '$(project)'
versioningScheme: 'off'
- task: UseDotNet@2
displayName: 'Install .NET Core 3.x'
inputs:
packageType: 'sdk'
version: '3.x'
- task: CmdLine@2
displayName: 'Create Umbraco Package'
inputs:
script: |
dotnet tool install --global Umbraco.Tools.Packages
cd src/$(projectName)/
umbpack pack .\package.xml -o $(Build.ArtifactStagingDirectory)
cd ../../
- task: PublishBuildArtifacts@1
displayName: 'Publish Build Artifacts'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'