Skip to content

Commit

Permalink
chore: fix nuget versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
FantasticFiasco committed Mar 13, 2019
1 parent 62423e8 commit b33f0ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ Task("Pack")
.Does(() =>
{
var version = GetAssemblyVersion("./Directory.Build.props");
var branch = EnvironmentVariable("APPVEYOR_REPO_BRANCH");
var isTag = EnvironmentVariable("APPVEYOR_REPO_TAG");

// Unless on master, this is a pre-release
if (branch != "master")
// Unless this is a tag, this is a pre-release
if (isTag != "true")
{
var sha = EnvironmentVariable("APPVEYOR_REPO_COMMIT");
version += $"-sha-{sha}";
Expand Down

0 comments on commit b33f0ce

Please sign in to comment.