mirror of
https://github.com/Facepunch/sbox-public.git
synced 2025-12-23 22:48:07 -05:00
Do sync step sooner, avoid any extra junk made during tests/upload
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user