File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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
2121dotnet build .\src\JsonApiDotNetCore - c Release
2222
2323echo " APPVEYOR_REPO_TAG: $env: APPVEYOR_REPO_TAG "
24- echo " VERSION-SUFFIX: alpha1- $revision "
24+
2525
2626If ($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}
3132Else {
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}
You can’t perform that action at this time.
0 commit comments