build with powershell 5 and 7

This commit is contained in:
Petri Asikainen 2021-06-15 14:16:12 +03:00
parent b19aa28e41
commit fad878460a

View file

@ -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