tag:help.appveyor.com,2012-11-13:/discussions/questions/38902-deploying-from-commit-that-started-a-buildAppVeyor: Discussion 2019-08-22T21:01:18Ztag:help.appveyor.com,2012-11-13:Comment/473747042019-06-21T17:57:43Z2019-06-21T17:57:44ZDeploying from Commit That Started a Build<div><p>We use our build process to also do our deployments. When we merge into the master branch, our build knows that this build should be published out to GitHub and the PowerShell Gallery.</p>
<p>However, instead, I'd like to be able to build/deploy on-demand, after a build, when our team determines we that a specific branch/commit is ready to get deployed. Is there a way to run a deployment script out of our repository on the same commit that triggered a build?</p></div>Aaron Jensentag:help.appveyor.com,2012-11-13:Comment/473747042019-06-21T22:40:42Z2019-06-21T22:40:42ZDeploying from Commit That Started a Build<div><p>Hi Aaron,</p>
<p>For any built-in deployment provider you can use <strong>Environment</strong> deployment. Difference with <strong>Inline</strong> deployment (which you do now) is described <a href="https://www.appveyor.com/docs/deployment/#overview">here</a>. However <strong>Environment</strong> deployment does not support custom scripts now. If your deployment is based on custom script, you can use a workaround called <a href="https://www.appveyor.com/blog/2015/11/04/deployment-projects/">deployment project</a>. It requires a little bit of scripting, but should not take too long to tune up.</p>
<p>Let us know if you have any issues with it.</p>
<p>Ilya.</p></div>Ilya Finkelshteyn