Skip to content

Commit 48e8516

Browse files
committed
fic(build.ps1): handle release with no version-suffix
1 parent 83d4a1d commit 48e8516

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Build.ps1

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,18 @@ dotnet build .\src\JsonApiDotNetCore -c Release
2222

2323
echo "APPVEYOR_REPO_TAG: $env:APPVEYOR_REPO_TAG"
2424

25-
2625
If($env:APPVEYOR_REPO_TAG -eq $true) {
2726
$revision = Get-Version-Suffix-From-Tag
2827
echo "VERSION-SUFFIX: $revision"
29-
echo "RUNNING dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$revision"
30-
dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$revision
28+
29+
IF ([string]::IsNullOrWhitespace($revision)){
30+
echo "RUNNING dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts"
31+
dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts
32+
}
33+
Else {
34+
echo "RUNNING dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$revision"
35+
dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$revision
36+
}
3137
}
3238
Else {
3339
echo "VERSION-SUFFIX: alpha1-$revision"

0 commit comments

Comments
 (0)