forked from umbraco/Umbraco.Cms.Integrations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipeline - Commerce.CommerceTools.yml
55 lines (47 loc) · 1.45 KB
/
azure-pipeline - Commerce.CommerceTools.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
trigger:
- main
pool:
vmImage: 'windows-latest'
variables:
projectName: 'Umbraco.Cms.Integrations.Commerce.CommerceTools'
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: 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'