问题
I'm in the process of setting up a build and release of an asp.net core web app on vsts.
I've the build working with the following tasks:
- Build solution
- dotnet publish
- create artifact of type zip to $(Build.ArtifactStagingDirectory)/MyApp_$(Build.BuildId).zip
- publish -- artifact path $(Build.ArtifactStagingDirectory)/MyApp_$(Build.BuildId).zip -- artifact name MyApp_Package
This all works fine...
The release is an "Azure App Service Deploy" task. The "package or folder" is $(System.DefaultWorkingDirectory)/MyBuild/MyApp_Package It is "working" sortof in that it is deploying the zip file to the Azure web app but does not extract the files.
How do I get it to extract the zip on the azure web site?
回答1:
Since you are deploying a package (zip), you need to check Publish using Web Deploy option and specify the zip file for Package or folder.
回答2:
I had the same problem. However the "Publish using Web Deploy" option has been checked all the time. I also tried the version 2 and 3 of the task.
My solution was to add unzip .zip and rm
来源:https://stackoverflow.com/questions/43764661/extract-zip-artifact-as-part-of-azure-app-service-deploy