diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 43f2ddb..994a624 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,7 +31,6 @@ jobs: NuGetReportSettings_SharedKey: ${{ secrets.NUGETREPORTSETTINGS_SHAREDKEY }} NuGetReportSettings_WorkspaceId: ${{ secrets.NUGETREPORTSETTINGS_WORKSPACEID }} GH_PACKAGES_NUGET_SOURCE: ${{ secrets.GH_PACKAGES_NUGET_SOURCE }} - GH_PACKAGES_NUGET_APIKEY: ${{ secrets.GH_PACKAGES_NUGET_APIKEY }} NUGET_SOURCE: ${{ secrets.NUGET_SOURCE }} NUGET_APIKEY: ${{ secrets.NUGET_APIKEY }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/build/records.cake b/build/records.cake index 28a034c..b0eb1cd 100644 --- a/build/records.cake +++ b/build/records.cake @@ -15,7 +15,7 @@ public record BuildData( public DirectoryPath BinaryOutputPath { get; } = OutputPath.Combine("bin"); public string GitHubNuGetSource { get; } = System.Environment.GetEnvironmentVariable("GH_PACKAGES_NUGET_SOURCE"); - public string GitHubNuGetApiKey { get; } = System.Environment.GetEnvironmentVariable("GH_PACKAGES_NUGET_APIKEY"); + public string GitHubNuGetApiKey { get; } = System.Environment.GetEnvironmentVariable("GITHUB_TOKEN"); public bool ShouldPushGitHubPackages() => !string.IsNullOrWhiteSpace(GitHubNuGetSource) && !string.IsNullOrWhiteSpace(GitHubNuGetApiKey);