1
0
This repository has been archived on 2026-04-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
my-old-website/azure-pipelines.yml
T
2020-11-18 01:16:28 +03:00

32 lines
899 B
YAML

# 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
pool:
vmImage: 'windows-latest'
steps:
- task: DownloadSecureFile@1
name: wdConfig
inputs:
secureFile: "WebDeploy.pubxml"
- script: 'move $(wdConfig.secureFilePath) $(Build.Repository.LocalPath)\MyWebsite\MyWebsite\Properties\PublishProfiles\WebDeploy.pubxml'
displayName: "Move config to directory"
- task: MSBuild@1
displayName: "Deployment via Web Deploy"
inputs:
solution: '**/*.sln'
msbuildArchitecture: 'x64'
platform: 'Any CPU'
configuration: 'Release'
msbuildArguments: |
'/p:DeployOnBuild=true'
'/p:PublishProfile=WebDeploy'
'/p:Password=$(webDeployPassword)'
restoreNugetPackages: true