Do sync step sooner, avoid any extra junk made during tests/upload

This commit is contained in:
Matt Stevens
2025-11-24 12:12:29 +00:00
parent 0675def24c
commit 71f3ce2d42

View File

@@ -23,6 +23,12 @@ internal class Deploy
builder.AddStep( new BuildShaders( "Build Shaders" ) );
builder.AddStep( new BuildContent( "Build Content" ) );
if ( target == BuildTarget.Staging )
{
// Sync to public repository
builder.AddStep( new SyncPublicRepo( "Sync to Public Repository" ) );
}
// Testing
builder.AddStep( new Test( "Tests" ) );
@@ -39,12 +45,6 @@ internal class Deploy
string branch = target == BuildTarget.Staging ? "staging" : "release";
builder.AddStep( new UploadSteam( "Upload to Steam", branch ) );
if ( target == BuildTarget.Staging )
{
// Sync to public repository
builder.AddStep( new SyncPublicRepo( "Sync to Public Repository" ) );
}
// Notification
var commitMessage = Environment.GetEnvironmentVariable( "COMMIT_MESSAGE" ) ?? "Build completed";
var version = Utility.VersionName();