Skip to content

Commit

Permalink
Name of secret.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmwebb-lv committed Apr 19, 2024
1 parent 24362d8 commit c854e76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
OnPullRequestBranches = new[] { "main" },
AutoGenerate = true,
ImportSecrets = new[] {"NuGetApiKey"})]
ImportSecrets = new[] {"NUGETAPIKEY"})]
[ShutdownDotNetAfterServerBuild]
class Build : NukeBuild
{
Expand Down Expand Up @@ -62,7 +62,7 @@ class Build : NukeBuild
AbsolutePath Directory_NuGet => RootDirectory / "NuGet";

[Parameter] string NuGetApiUrl = "https://api.nuget.org/v3/index.json";
[Parameter][Secret] string NuGetApiKey;
[Parameter][Secret] string NUGETAPIKEY;

string Copyright = $"Copyright © Jason Webb {DateTime.Now.Year}";

Expand Down Expand Up @@ -471,7 +471,7 @@ protected override void OnBuildInitialized()
Target Push => _ => _
.DependsOn(Pack)
.Requires(() => NuGetApiUrl)
.Requires(() => NuGetApiKey)
.Requires(() => NUGETAPIKEY)
.Requires(() => Configuration.Equals(Configuration.Release))
.Executes(() =>
{
Expand All @@ -484,7 +484,7 @@ protected override void OnBuildInitialized()
.DotNetNuGetPush(s => s
.SetTargetPath(Directory_NuGet/file)
.SetSource(NuGetApiUrl)
.SetApiKey(NuGetApiKey)
.SetApiKey(NUGETAPIKEY)
);
});
});
Expand Down

0 comments on commit c854e76

Please sign in to comment.