mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-12 17:32:30 +00:00
build with powershell 5 and 7
This commit is contained in:
parent
b19aa28e41
commit
fad878460a
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue