Skip to content

Commit

Permalink
fix(ps): fix deployment
Browse files Browse the repository at this point in the history
only specify a version suffix if there is a tag
  • Loading branch information
jaredcnance committed Mar 14, 2017
1 parent f214a89 commit 49feb55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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

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 }

0 comments on commit 49feb55

Please sign in to comment.