tag:help.appveyor.com,2012-11-13:/discussions/problems/2584-deployment-isnt-triggeringAppVeyor: Discussion 2018-10-19T08:17:21Ztag:help.appveyor.com,2012-11-13:Comment/374642512015-07-23T19:02:30Z2015-07-23T19:14:07ZDeployment isn't triggering<div><p>Hello,</p>
<p>I have a PowerShell project with a <code>deploy.ps1</code>
script and <code>appveyor.yml</code>, both in the root. The
<code>deploy.ps1</code> script is not getting executed,
however.</p>
<p>Being a PowerShell script module, there is no "build" or
"artifacts" to speak of. However, during the <code>deploy</code>
phase, I would like to publish the PowerShell module to the
PowerShell Gallery (powershellgallery.com), so that users can use
<code>Find-Module</code> to locate it. I am using the
<code>Unstable</code> AppVeyor OS image, which includes PowerShell
5.0 April 2015 Preview, which contains the
<code>PowerShellGet</code> module that allows me to use the
<code>Publish-Module</code> command to publish to the gallery.</p>
<p>I have tried many, many variations of the YAML file, and nothing
seems to work. How do I make sure that <code>deploy.ps1</code> is
executed, even though I don't have a "build" or any
"artifacts?"</p>
<p>Cheers,<br>
Trevor Sullivan<br>
Microsoft MVP: PowerShell</p></div>Trevor Sullivantag:help.appveyor.com,2012-11-13:Comment/374642512015-07-23T19:34:23Z2015-07-23T19:34:23ZDeployment isn't triggering<div><p><code>deploy.ps1</code> is to use along with Deployment
Agent.</p>
<p>Seems like you just need to call it directly like:</p>
<pre>
<code>deploy_script:
- ps: .\deploy.ps1</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/374642512015-07-24T16:41:47Z2015-07-24T16:41:47ZDeployment isn't triggering<div><p>@Feodor: Thanks, that worked.</p>
<p>Cheers,<br>
Trevor Sullivan<br>
Microsoft MVP: PowerShell</p></div>Trevor Sullivan