I'm deploying and angular app on Azure App Service. The release pipeline succeeded but the app is not there. I looked into wwwroot and LocalSiteRoot the dist folder is not there. Is my pipeline wrong? based on the app angular.json that the build will be generated in dist/myapp. But the Copy Task couldn't find it.
pool:
name: Azure Pipelines
steps:
- task: NodeTool@0
displayName: 'Use Node 6.x'
- task: Npm@1
displayName: 'Use npm @latest'
inputs:
command: custom
verbose: false
customCommand: 'install -g npm@latest'
- task: Npm@1
displayName: 'npm install'
inputs:
verbose: false
- task: Npm@0
displayName: 'npm build'
inputs:
cwd: myapp/package.json
command: custom
arguments: 'run prod-build-dev'
- task: CopyFiles@2
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
inputs:
SourceFolder: '$(agent.builddirectory)/dist/myapp'
TargetFolder: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: app'
inputs:
ArtifactName: app