From b1981542791c1ef441ae253d1a620a2a8eaa1235 Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Tue, 14 May 2024 08:47:24 +0100 Subject: [PATCH] retry zipping and upload --- Build/Github.cs | 9 +++------ Build/Program.cs | 4 +++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Build/Github.cs b/Build/Github.cs index ac4dc39ad0..ceac346bc3 100644 --- a/Build/Github.cs +++ b/Build/Github.cs @@ -12,11 +12,8 @@ private static GitHubClient GetClient(string secret) => public static async Task TriggerWorkflow(string secret, string workflowFileName) { var client = GetClient(secret); - await client.Actions.Workflows.CreateDispatch( - "specklesystems", - "connector-installers", - workflowFileName, - new CreateWorkflowDispatch("main") - ); + await client.Actions.Workflows + .CreateDispatch("specklesystems", "connector-installers", workflowFileName, new CreateWorkflowDispatch("main")) + .ConfigureAwait(false); } } diff --git a/Build/Program.cs b/Build/Program.cs index 981ad2e4c2..eebc43e0ed 100644 --- a/Build/Program.cs +++ b/Build/Program.cs @@ -96,7 +96,9 @@ IEnumerable GetFiles(string d) var fullPath = Path.Combine(".", Path.GetDirectoryName(path), "bin", "Release", framework); var outputDir = Path.Combine(".", "output"); Directory.CreateDirectory(outputDir); - var outputPath = Path.Combine(outputDir, Path.ChangeExtension(path, "zip")); + + var outputPath = Path.Combine(outputDir, $"{Path.GetDirectoryName(path)}.zip"); + Console.WriteLine($"Zipping: '{fullPath}' to '{outputPath}'"); ZipFile.CreateFromDirectory(fullPath, outputPath); }