File tree Expand file tree Collapse file tree 1 file changed +13
-16
lines changed Expand file tree Collapse file tree 1 file changed +13
-16
lines changed Original file line number Diff line number Diff line change 6
6
7
7
variables :
8
8
projectName : ' Umbraco.Forms.Integrations.Crm.Hubspot.OAuthProxy'
9
- solution : ' **/*.sln'
10
9
project : ' src/$(projectName)/$(projectName).csproj'
11
- buildPlatform : ' Any CPU'
12
10
buildConfiguration : ' Release'
13
11
14
12
steps :
15
- - task : NuGetToolInstaller@1
16
- displayName : ' Install NuGet'
17
-
18
- - task : NuGetCommand@2
19
- displayName : ' NuGet Restore'
20
- inputs :
21
- restoreSolution : ' $(solution)'
22
-
23
- - task : VSBuild@1
24
- displayName : ' Build Project'
13
+ - script : dotnet build $(project) --configuration $(buildConfiguration)
14
+ displayName : ' Buid Web App'
15
+ - task : DotNetCoreCLI@2
16
+ displayName : ' Publish Web App'
25
17
inputs :
26
- solution : ' $(project)'
27
- msbuildArgs : ' /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
28
- platform : ' $(buildPlatform)'
29
- configuration : ' $(buildConfiguration)'
18
+ command : ' publish'
19
+ publishWebProjects : true
20
+ # - task: AzureWebApp@1
21
+ # displayName: 'Deploy Web App'
22
+ # inputs:
23
+ # azureSubscription: '<Azure service connection>'
24
+ # appType: 'webAppLinux'
25
+ # appName: '<Name of web app>'
26
+ # package: '$(System.DefaultWorkingDirectory)/**/*.zip'
You can’t perform that action at this time.
0 commit comments