File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ trigger :
2+ - main
3+
4+ pool :
5+ vmImage : ' windows-latest'
6+
7+ variables :
8+ projectName : ' Umbraco.Cms.Integrations.Crm.Dynamics'
9+ project : ' src/$(projectName)/$(projectName).csproj'
10+ buildPlatform : ' Any CPU'
11+ buildConfiguration : ' Release'
12+
13+ steps :
14+ - task : NuGetToolInstaller@1
15+ displayName : ' Install NuGet'
16+
17+ - task : DotNetCoreCLI@2
18+ displayName : ' NuGet Restore'
19+ inputs :
20+ command : ' restore'
21+ feedsToUse : ' select'
22+ projects : ' $(project)'
23+ includeNuGetOrg : true
24+
25+ - task : VSBuild@1
26+ displayName : ' Build Project'
27+ inputs :
28+ solution : ' $(project)'
29+ msbuildArgs : ' /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
30+ platform : ' $(buildPlatform)'
31+ configuration : ' $(buildConfiguration)'
32+
33+ - task : DotNetCoreCLI@2
34+ displayName : ' Create NuGet Package'
35+ inputs :
36+ command : ' pack'
37+ arguments : ' --configuration $(buildConfiguration)'
38+ packagesToPack : ' $(project)'
39+ versioningScheme : ' off'
40+
41+ - task : CmdLine@2
42+ displayName : ' Create Umbraco Package'
43+ inputs :
44+ script : |
45+ dotnet tool install --global Umbraco.Tools.Packages
46+ cd src/$(projectName)/
47+ umbpack pack .\package.xml -o $(Build.ArtifactStagingDirectory)
48+ cd ../../
49+
50+ - task : PublishBuildArtifacts@1
51+ displayName : ' Publish Build Artifacts'
52+ inputs :
53+ PathtoPublish : ' $(Build.ArtifactStagingDirectory)'
54+ ArtifactName : ' drop'
55+ publishLocation : ' Container'
You can’t perform that action at this time.
0 commit comments