Debian Codegraph @

sample_yaml_builds/windows/dotnet-windows.yml

raw
1 # Starter template for Azure functions build for {{language}} {{appType}}
2 variables:
3 azureSubscription: '{ARM ACCESS TOKEN NAME}'
4 functionappName: '{NAME OF FUNCTIONAPP}'
5
6 pool:
7 vmImage: 'VS2017-Win2016'
8
9 steps:
10 - script: |
11 dotnet restore
12 dotnet build --configuration Release
13 - task: DotNetCoreCLI@2
14 inputs:
15 command: publish
16 arguments: '--configuration Release --output publish_output'
17 projects: '*.csproj'
18 publishWebProjects: false
19 modifyOutputPath: true
20 zipAfterPublish: false
21 - task: ArchiveFiles@2
22 displayName: "Archive files"
23 inputs:
24 rootFolderOrFile: "$(System.DefaultWorkingDirectory)/publish_output/s"
25 includeRootFolder: false
26 archiveFile: "$(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip"
27 - task: PublishBuildArtifacts@1
28 inputs:
29 PathtoPublish: '$(System.DefaultWorkingDirectory)/$(Build.BuildId).zip'
30 name: 'drop'
31 - task: AzureRmWebAppDeployment@4
32 inputs:
33 connectionType: 'AzureRM'
34 azureSubscription: "$(azureSubscription)"
35 appType: 'functionApp'
36 webAppName: "$(functionappName)"