Skip to content

Commit 1901c00

Browse files
committed
Update azure-pipeline - Crm.ActiveCampaign.yml for Azure Pipelines
1 parent 1c11d32 commit 1901c00

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

azure-pipeline - Crm.ActiveCampaign.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ pool:
55
vmImage: 'windows-latest'
66

77
variables:
8+
coreProjectName: 'Umbraco.Cms.Integrations.Crm.ActiveCampaign.Core'
89
projectName: 'Umbraco.Cms.Integrations.Crm.ActiveCampaign'
10+
coreProject: 'src/$(coreProjectName)/$(coreProjectName).csproj'
911
project: 'src/$(projectName)/$(projectName).csproj'
1012
buildPlatform: 'Any CPU'
1113
buildConfiguration: 'Release'
@@ -14,6 +16,30 @@ steps:
1416
- task: NuGetToolInstaller@1
1517
displayName: 'Install NuGet'
1618

19+
- task: DotNetCoreCLI@2
20+
displayName: 'NuGet Core Restore'
21+
inputs:
22+
command: 'restore'
23+
feedsToUse: 'select'
24+
projects: '$(coreProject)'
25+
includeNuGetOrg: true
26+
27+
- task: VSBuild@1
28+
displayName: 'Build Project'
29+
inputs:
30+
solution: '$(coreProject)'
31+
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
32+
platform: '$(buildPlatform)'
33+
configuration: '$(buildConfiguration)'
34+
35+
- task: DotNetCoreCLI@2
36+
displayName: 'Create Core NuGet Package'
37+
inputs:
38+
command: 'pack'
39+
arguments: '--configuration $(buildConfiguration)'
40+
packagesToPack: '$(coreProject)'
41+
versioningScheme: 'off'
42+
1743
- task: DotNetCoreCLI@2
1844
displayName: 'NuGet Restore'
1945
inputs:

0 commit comments

Comments
 (0)