Search code examples
deploymentazure-devopszip

Azure DevOps uzip as a deploy task


does anyone know how to uznip a file as a part of the deployment pipeline?

At the moment deploy finishes with a zip archive inside of fronted/download/myfiles.zip.

I want to add a task which will take this zip file and extract it into e.g. frontend/download/archive/...

Thank you


Solution

  • There is an Extract Archive task provided by Microsoft that you can use to extract archived files.

    After you added it as a task that runs on your deployment group to you can configure it so that it does what you need. Make sure to set Archive file patterns and Destination folder correctly.

    Add Extract Files task Configure task to extract from and where you want to