Skip to content

Commit

Permalink
retry zipping and upload
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhathcock committed May 14, 2024
1 parent d6ece27 commit b198154
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 3 additions & 6 deletions Build/Github.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
4 changes: 3 additions & 1 deletion Build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ IEnumerable<string> 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);
}
Expand Down

0 comments on commit b198154

Please sign in to comment.