Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into release/v1.28
Browse files Browse the repository at this point in the history
  • Loading branch information
fluxzy-ci committed Feb 2, 2025
2 parents 5b2e014 + 34efdca commit 1b07a36
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/Fluxzy.Build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ private static string GetFileName(string runtimeIdentifier, string version)

private static async Task Upload(FileInfo fullFile)
{
if (!string.Equals(Environment.GetEnvironmentVariable("ENABLE_UPLOAD"),
"1", StringComparison.OrdinalIgnoreCase)) {
Console.WriteLine("Skipping upload");
return;
}

var uploadReleaseToken = EnvironmentHelper.GetEvOrFail("UPLOAD_RELEASE_TOKEN");

var hashValue = HashHelper.GetSha512Hash(fullFile);
Expand Down

0 comments on commit 1b07a36

Please sign in to comment.