From 49feb555c6c1b7f8438801380742133920e229d4 Mon Sep 17 00:00:00 2001 From: jcnance Date: Tue, 14 Mar 2017 09:41:32 -0500 Subject: [PATCH] fix(ps): fix deployment only specify a version suffix if there is a tag --- Build.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Build.ps1 b/Build.ps1 index d094dd4bf3..8a1bd3ca60 100644 --- a/Build.ps1 +++ b/Build.ps1 @@ -3,4 +3,6 @@ $revision = "{0:D4}" -f [convert]::ToInt32($revision, 10) dotnet restore .\src\JsonApiDotNetCore\JsonApiDotNetCore.csproj dotnet build .\src\JsonApiDotNetCore -c Release -dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$revision \ No newline at end of file + +If($env:APPVEYOR_REPO_TAG) { dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts } +Else { dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$revision }