Skip to content

Commit

Permalink
Update to gitversion for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHinsh committed Jun 18, 2024
1 parent 4ecce3b commit e0576ce
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions GitVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ branches:
regex: ^master$|^main$
release:
mode: ContinuousDelivery
tag:
tag: ""
increment: Patch
prevent-increment-of-merged-branch-version: true
track-merge-target: false
regex: ^release(s)?[/-]
regex: ^release(s)?[\/-]
source-branches:
- master
- main
Expand Down
16 changes: 11 additions & 5 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$doCompile = $false
Write-Output "BUILD ABBWorkItemClone"
Write-Output "======================"
Write-Output "Running from $($MyInvocation.MyCommand.Path)"
Write-Output "Do Build & Test? $doCompile"


Write-Output "INSTALL CHOCO APPS"
Expand Down Expand Up @@ -57,11 +59,15 @@ Write-Output "--------------"

Write-Output "Complile and Test"
Write-Output "--------------"
# Build
$dotnetversion = where dotnet | dotnet --version
dotnet restore
dotnet build
dotnet test
if ($doCompile)
{
$dotnetversion = where dotnet | dotnet --version
dotnet restore
dotnet build
dotnet test
} else {
Write-Output "Skipping Compile and Test"
}
Write-Output "--------------"

Write-Output "Zip ABBWorkItemClone"
Expand Down

0 comments on commit e0576ce

Please sign in to comment.