We have Android/Apple pngs in the root as seen in the screenshot. Those icons are required in the root folder as some 404 requests were happening on mobile devices and including the icons in the root solves the issue. They are not committed to source control, which is why we don’t want the release pipeline to delete them when deploying a new build artifact.
The reason why they're not committed to source control is because they’re not actually used by the code, but sometimes there are requests for them from mobile devices, and those would throw 404 errors which would blow up the alerts channel. So they are just copied to the root for now to stop those 404 alerts.
During Release pipeline App Service Deployment, we need to make sure those files don't get overwritten. Here’s the current App Service Deployment YAML:
steps:
task: AzureRmWebAppDeployment@4
displayName: ‘Azure App Service Deploy: edge-dev’
inputs:
azureSubscription: ‘Azure Dev Service Connection’
WebAppName: ‘edge-dev’
packageForLinux: ‘$(System.DefaultWorkingDirectory)/Build Artifact/Release’
enableCustomDeployment: true
AdditionalArguments: ‘-skip:objectName=filePath,absolutePath=“Web.Dev.config|Web.Test.config|Web.Beta.config|Web.Prod.config|\*.zip” -retryAttempts:6 -retryInterval:10000’
enableXmlTransform: true
Is there some sort of option we can add so that the Android/Apple png files don't get overwritten? Currently every time a new build triggers the release deployment, the icons are removed and the developer has to keep uploading them manually after a deployment to ensure 404 errors don't occur.