forked from umbraco/Umbraco.Forms.Integrations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipeline - Commerce.Emerchantpay.yml
53 lines (46 loc) · 1.48 KB
/
azure-pipeline - Commerce.Emerchantpay.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
trigger:
- main
pool:
vmImage: 'windows-latest'
variables:
projectName: 'Umbraco.Forms.Integrations.Commerce.Emerchantpay'
solution: '**/*.sln'
project: 'src/$(projectName)/$(projectName).csproj'
testPoject: 'src/$(projectName).Tests/$(projectName).Tests.csproj'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
displayName: 'Install NuGet'
- task: NuGetCommand@2
displayName: 'NuGet Restore'
inputs:
restoreSolution: '$(solution)'
- 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'