From fad878460a5e7069e28480064bc507457160f707 Mon Sep 17 00:00:00 2001 From: Petri Asikainen Date: Tue, 15 Jun 2021 14:16:12 +0300 Subject: [PATCH] build with powershell 5 and 7 --- SnipeitPS.build.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SnipeitPS.build.ps1 b/SnipeitPS.build.ps1 index 48a0ac9..12627d7 100644 --- a/SnipeitPS.build.ps1 +++ b/SnipeitPS.build.ps1 @@ -191,7 +191,9 @@ task Deploy -If ( (-not ($env:APPVEYOR_PULL_REQUEST_NUMBER)) -and # Do not deploy if the commit contains the string "skip-deploy" # Meant for major/minor version publishes with a .0 build/patch version (like 2.1.0) - $env:APPVEYOR_REPO_COMMIT_MESSAGE -notlike '*skip-deploy*' + $env:APPVEYOR_REPO_COMMIT_MESSAGE -notlike '*skip-deploy*' -and + # publish from one powershell version is enought + $env:PShell -eq '5' ) { Remove-Module SnipeitPS -ErrorAction SilentlyContinue }, PublishToGallery