File tree 1 file changed +46
-0
lines changed
1 file changed +46
-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.PIM.Inriver'
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 : PublishBuildArtifacts@1
42
+ displayName : ' Publish Build Artifacts'
43
+ inputs :
44
+ PathtoPublish : ' $(Build.ArtifactStagingDirectory)'
45
+ ArtifactName : ' drop'
46
+ publishLocation : ' Container'
You can’t perform that action at this time.
0 commit comments