Skip to content

Commit a8966ac

Browse files
committed
fix build script
1 parent 34aabb6 commit a8966ac

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Build.ps1

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function Get-Version-Suffix-From-Tag
66
$split=$tag -split "-"
77
$suffix=$split[1..2]
88
$final=$suffix -join "-"
9-
return $c
9+
return $final
1010
}
1111

1212
$revision = @{ $true = $env:APPVEYOR_BUILD_NUMBER; $false = 1 }[$env:APPVEYOR_BUILD_NUMBER -ne $NULL];
@@ -21,14 +21,16 @@ dotnet test ./test/NoEntityFrameworkTests/NoEntityFrameworkTests.csproj
2121
dotnet build .\src\JsonApiDotNetCore -c Release
2222

2323
echo "APPVEYOR_REPO_TAG: $env:APPVEYOR_REPO_TAG"
24-
echo "VERSION-SUFFIX: alpha1-$revision"
24+
2525

2626
If($env:APPVEYOR_REPO_TAG -eq $true) {
27-
echo "RUNNING dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts "
2827
$revision = Get-Version-Suffix-From-Tag
28+
echo "VERSION-SUFFIX: $revision"
29+
echo "RUNNING dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$revision"
2930
dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$revision
3031
}
3132
Else {
33+
echo "VERSION-SUFFIX: alpha1-$revision"
3234
echo "RUNNING dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=alpha1-$revision"
3335
dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=alpha1-$revision
3436
}

0 commit comments

Comments
 (0)