My functions are under: /src/functions/
.NET Core functions named FunctionApp1 and FunctionApp2
I am trying to build both functions and deploy them to my function app.
trigger:
- main
pool:
vmImage: ubuntu-latest
steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'
- task: DotNetCoreCLI@2
displayName: 'Build project'
inputs:
projects: 'src/functions/**/*.csproj'
arguments: '--output publish_output --configuration Release'
- task: ArchiveFiles@2
displayName: 'Archive files'
inputs:
rootFolderOrFile: 'publish_output/'
includeRootFolder: false
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts'
inputs:
artifactName: drop
extractTars: false
- task: AzureFunctionApp@1
displayName: 'Azure Function App Deploy: myfunk'
inputs:
azureSubscription: '(sadfgghjkkk)'
appType: functionApp
appName: myfunk
package: '$(System.ArtifactsDirectory)/*.zip'
The build and relase runs fine but I end up with only one function being present. How can I build every function I have in that directory and then publish them separately?