Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
Rico Suter committed Sep 25, 2023
1 parent 4191406 commit b8fc469
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,18 @@ protected override void OnBuildInitialized()
{
VersionPrefix = DetermineVersionPrefix();

VersionSuffix = !IsTaggedBuild
? $"preview-{DateTime.UtcNow:yyyyMMdd-HHmm}"
: "";
var versionParts = VersionPrefix.Split('-');
if (versionParts.Length == 2)
{
VersionPrefix = versionParts[0];
VersionSuffix = versionParts[1];
}
else
{
VersionSuffix = !IsTaggedBuild
? $"preview-{DateTime.UtcNow:yyyyMMdd-HHmm}"
: "";
}

if (IsLocalBuild)
{
Expand Down

0 comments on commit b8fc469

Please sign in to comment.