Skip to content

Commit

Permalink
Disable uploading CLI binaries on default publish
Browse files Browse the repository at this point in the history
  • Loading branch information
haga-rak authored Feb 2, 2025
1 parent bc71ab4 commit 8d11220
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 8d11220

Please sign in to comment.