From db6548bc99d66cc5cd7f67ed6bd194601b1c241a Mon Sep 17 00:00:00 2001 From: Vasilis Date: Sat, 8 Jun 2024 13:33:51 +0300 Subject: [PATCH] Ensure packager creates a release folder (#28426) I was screaming at the github actions runner before i noticed something i had done before caused me to never have a release folder and thus fail. --- Content.Packaging/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Content.Packaging/Program.cs b/Content.Packaging/Program.cs index 65c0e0131a..9457e9dacc 100644 --- a/Content.Packaging/Program.cs +++ b/Content.Packaging/Program.cs @@ -11,6 +11,11 @@ if (!CommandLineArgs.TryParse(args, out var parsed)) if (parsed.WipeRelease) WipeRelease(); +else +{ + // Ensure the release directory exists. Otherwise, the packaging will fail. + Directory.CreateDirectory("release"); +} if (!parsed.SkipBuild) WipeBin();