Skip to content

Commit 6b23e4f

Browse files
author
JustinGrote
committed
Fix problem with versioning
1 parent 335d277 commit 6b23e4f

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

PSModule.build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ task Version {
171171
#Fetch GitVersion
172172
$GitVersionCMDPackage = Install-Package $GitVersionCMDPackageName -scope currentuser -source 'nuget.org' -force @PassThruParams
173173
}
174-
$GitVersionEXE = (($GitVersionCMDPackage).source | split-path -Parent) + "\tools\GitVersion.exe"
174+
$GitVersionEXE = ((Get-Package $GitVersionCMDPackageName).source | split-path -Parent) + "\tools\GitVersion.exe"
175175

176176
#Does this project have a module manifest? Use that as the Gitversion starting point (will use this by default unless project is tagged higher)
177177
#Uses Powershell-YAML module to read/write the GitVersion.yaml config file
@@ -377,7 +377,7 @@ task PreDeploymentChecks {
377377
$ErrorActionPreference = $CurrentErrorActionPreference
378378
}
379379

380-
if ((-not $env:BHBranchName -eq 'Master') -or ($ForceDeploy -ne $true)) {
380+
if ((-not $env:BHBranchName -eq 'master') -or ($ForceDeploy -ne $true)) {
381381
write-build Magenta "Task $($task.name)`: We are not in master branch, skipping publish. If you wish to deploy anyways such as for testing, run {InvokeBuild Deploy -ForceDeploy:$true}"
382382
$script:SkipPublish=$true
383383
} else {

appveyor.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ environment:
77
secure: HncD30pn+cWRepdP28pyB1l4BNg3x3MdvcNV8EysOhQ5kBFMHVyXiQM0whuUW78P
88

99
image:
10-
- Visual Studio 2015
1110
- Visual Studio 2017
1211
install:
1312
- ps: Install-Module -Name InvokeBuild -Confirm:$false -ErrorAction Stop -Force

0 commit comments

Comments
 (0)