@@ -220,17 +220,22 @@ public static class BuildSettings
220
220
? CommandLineOptions . TestLevel . Value
221
221
: CalcPackageTestLevel ( ) ;
222
222
223
- // Publishing
223
+ // Publishing - MyGet
224
224
public static string MyGetPushUrl => MYGET_PUSH_URL ;
225
+ public static string MyGetApiKey => Context . EnvironmentVariable ( MYGET_API_KEY ) ;
226
+
227
+ // Publishing - NuGet
225
228
public static string NuGetPushUrl => NUGET_PUSH_URL ;
229
+ public static string NuGetApiKey => Context . EnvironmentVariable ( NUGET_API_KEY ) ;
230
+
231
+ // Publishing - Chocolatey
226
232
public static string ChocolateyPushUrl => CHOCO_PUSH_URL ;
233
+ public static string ChocolateyApiKey => Context . EnvironmentVariable ( CHOCO_API_KEY ) ;
227
234
228
- public static string MyGetApiKey { get ; private set ; }
229
- public static string NuGetApiKey { get ; private set ; }
230
- public static string ChocolateyApiKey { get ; private set ; }
231
- public static string GitHubOwner { get ; private set ; }
232
- public static string GitHubRepository { get ; private set ; }
233
- public static string GitHubAccessToken { get ; private set ; }
235
+ // Publishing - GitHub
236
+ public static string GitHubOwner { get ; set ; }
237
+ public static string GitHubRepository { get ; set ; }
238
+ public static string GitHubAccessToken => Context . EnvironmentVariable ( GITHUB_ACCESS_TOKEN ) ;
234
239
235
240
public static bool IsPreRelease => BuildVersion . IsPreRelease ;
236
241
public static bool ShouldPublishToMyGet =>
@@ -318,6 +323,7 @@ public static class BuildSettings
318
323
Console . WriteLine ( "MyGetApiKey: " + ( ! string . IsNullOrEmpty ( MyGetApiKey ) ? "AVAILABLE" : "NOT AVAILABLE" ) ) ;
319
324
Console . WriteLine ( "NuGetApiKey: " + ( ! string . IsNullOrEmpty ( NuGetApiKey ) ? "AVAILABLE" : "NOT AVAILABLE" ) ) ;
320
325
Console . WriteLine ( "ChocolateyApiKey: " + ( ! string . IsNullOrEmpty ( ChocolateyApiKey ) ? "AVAILABLE" : "NOT AVAILABLE" ) ) ;
326
+ Console . WriteLine ( "GitHubAccessToken: " + ( ! string . IsNullOrEmpty ( GitHubAccessToken ) ? "AVAILABLE" : "NOT AVAILABLE" ) ) ;
321
327
322
328
Console . WriteLine ( "\n PACKAGES" ) ;
323
329
foreach ( var package in Packages )
0 commit comments