Ressources/FRPSUGModuleTemplate/CI/template.Deploy.ps1

$ErrorActionPreference = "Stop";

[parameter(Mandatory = $True)][String]$Deploytype

$ModuleName = "<%= $PLASTER_PARAM_ModuleName %>"
$Current = $PSScriptRoot
$Root = ((Get-Item $Current).Parent).FullName

Import-Module PSDeploy

$source = $Root + "\CI\Deploy\" + $ModuleName + ".PSDeploy.ps1"

Invoke-PSDeploy -Path $source -tag $DeployType -Force -Verbose