title: Azure Web Apps - how to run script before deployment
body: <p>I'm trying to use Azure Web Apps (Linux) to host a basic static site. I configured everything so a new deployment happens with every Git push. I put my pre-built pages in my repo to confirm everything works fine with this setup.</p>
  
  <p>Now I've removed the pre-built pages and kept only the templates and the build script (which is basically just an <code>npm install</code> and a mustatic 'compile') and I'd like to run this build script in my web app. I've scoured the internet but can't find anything.</p>
  
  <p>How can I run a script upon first deployment and after each Git-push-triggered deployment?</p>