| 1 |
# -------------------------------------------------------------------------------------------- |
| 2 |
# Copyright (c) Microsoft Corporation. All rights reserved. |
| 3 |
# Licensed under the MIT License. See License.txt in the project root for license information. |
| 4 |
# -------------------------------------------------------------------------------------------- |
| 5 |
# Starter template for Azure functions build -- dotnet on windows |
| 6 |
trigger: |
| 7 |
- master |
| 8 |
pool: |
| 9 |
vmImage: 'VS2017-Win2016' |
| 10 |
steps: |
| 11 |
- script: | |
| 12 |
dotnet restore |
| 13 |
dotnet build --configuration Release |
| 14 |
- task: DotNetCoreCLI@2 |
| 15 |
inputs: |
| 16 |
command: publish |
| 17 |
arguments: '--configuration Release --output publish_output' |
| 18 |
projects: '*.csproj' |
| 19 |
publishWebProjects: false |
| 20 |
modifyOutputPath: true |
| 21 |
zipAfterPublish: false |
| 22 |
- task: ArchiveFiles@2 |
| 23 |
displayName: 'Archive files' |
| 24 |
inputs: |
| 25 |
rootFolderOrFile: '$(System.DefaultWorkingDirectory)/publish_output/s' |
| 26 |
includeRootFolder: false |
| 27 |
archiveFile: '$(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip' |
| 28 |
- task: PublishBuildArtifacts@1 |
| 29 |
inputs: |
| 30 |
PathtoPublish: '$(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip' |
| 31 |
name: 'drop' |