Switching from zipping with ArchiveFiles@2 to dotnet publish made the deployment of the web app successful.
dotnet publish