1
0

Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
Michael Gordeev
2020-11-18 02:08:22 +03:00
parent 69b2ee1fbe
commit f789e662c4
+3 -15
View File
@@ -1,8 +1,4 @@
# ASP.NET Core
# Build and test ASP.NET Core projects targeting .NET Core.
# Add steps that run tests, create a NuGet package, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
trigger:
- master
@@ -11,6 +7,7 @@ pool:
steps:
- task: DownloadSecureFile@1
displayName: 'Downloading Web Deploy config'
name: wdConfig
inputs:
secureFile: "WebDeploy.pubxml"
@@ -19,20 +16,11 @@ steps:
echo Copying $(wdConfig.secureFilePath)" file to $(Build.Repository.LocalPath)\MyWebsite\MyWebsite\Properties\PublishProfiles
mkdir $(Build.Repository.LocalPath)\MyWebsite\MyWebsite\Properties\PublishProfiles
copy $(wdConfig.secureFilePath) $(Build.Repository.LocalPath)\MyWebsite\MyWebsite\Properties\PublishProfiles\WebDeploy.pubxml
displayName: "Move config to directory"
displayName: "Moving config to directory"
- task: DotNetCoreCLI@2
displayName: 'Deployment via Web Deploy'
inputs:
command: 'custom'
custom: 'msbuild'
arguments: '$(Build.Repository.LocalPath)\MyWebsite\MyWebsite.sln -restore:true /p:DeployOnBuild=true /p:PublishProfile=WebDeploy /p:Configuration=Release /p:Platform="Any CPU" /p:Password=$(webDeployPassword)'
# - task: MSBuild@1
# displayName: "Deployment via Web Deploy"
# inputs:
# solution: '**/*.sln'
# msbuildArchitecture: 'x64'
# platform: 'Any CPU'
# configuration: 'Release'
# msbuildArguments: '-restore:true /p:DeployOnBuild=true /p:PublishProfile=WebDeploy /p:Password=$(webDeployPassword)'
# restoreNugetPackages: true