Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
parameters:
- name: component
type: object
steps:
- task: DotNetCoreCLI@2
displayName: Build Azure Function
inputs:
command: 'build'
projects: '$(basePath)/${{parameters.component.projectPath}}/${{parameters.component.projectName}}.csproj'
arguments: '-c Release'
- task: DotNetCoreCLI@2
displayName: Publish Azure Function ${{parameters.component.displayName}}
inputs:
command: 'publish'
publishWebProjects: false
projects: '$(basePath)/${{parameters.component.projectPath}}/${{parameters.component.projectName}}.csproj'
arguments: '-c Release'
zipAfterPublish: false
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(basePath)/${{parameters.component.projectPath}}/bin/Release/netcoreapp3.1/publish'
artifact: 'AzureFunction_${{parameters.component.name}}'
publishLocation: 'pipeline'
- task: PublishPipelineArtifact@1
displayName: Publish Function App template ${{parameters.component.displayname}}
inputs:
targetPath: '$(basePath)/${{parameters.component.templatePath}}'
artifact: 'FunctionApp_${{parameters.component.name}}'
publishLocation: 'pipeline'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment