Skip to content

Commit 49feb55

Browse files
committed
fix(ps): fix deployment
only specify a version suffix if there is a tag
1 parent f214a89 commit 49feb55

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Build.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ $revision = "{0:D4}" -f [convert]::ToInt32($revision, 10)
33

44
dotnet restore .\src\JsonApiDotNetCore\JsonApiDotNetCore.csproj
55
dotnet build .\src\JsonApiDotNetCore -c Release
6-
dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$revision
6+
7+
If($env:APPVEYOR_REPO_TAG) { dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts }
8+
Else { dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$revision }

0 commit comments

Comments
 (0)