File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 35
35
run : ./build.cmd ContinousIntegration
36
36
env :
37
37
NugetApiKey : ${{ secrets.NugetApiKey }}
38
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38
39
- uses : actions/upload-artifact@v1
39
40
with :
40
41
name : nuget
Original file line number Diff line number Diff line change 27
27
OnPushBranches = new [ ] { "master" , "feature/*" } ,
28
28
OnPullRequestBranches = new [ ] { "master" } ,
29
29
InvokedTargets = new [ ] { nameof ( ContinousIntegration ) } ,
30
- ImportSecrets = new [ ] { nameof ( NugetApiKey ) } ,
30
+ ImportSecrets = new [ ] { nameof ( NugetApiKey ) , GithubTokenSecretName } ,
31
31
PublishArtifacts = true
32
32
) ]
33
33
class Build : NukeBuild
@@ -37,14 +37,17 @@ class Build : NukeBuild
37
37
/// - JetBrains Rider https://nuke.build/rider
38
38
/// - Microsoft VisualStudio https://nuke.build/visualstudio
39
39
/// - Microsoft VSCode https://nuke.build/vscode
40
+
41
+ const string GithubTokenSecretName = "GITHUB_TOKEN" ;
42
+
40
43
public static int Main ( ) => Execute < Build > ( x => x . Compile ) ;
41
44
42
45
[ Parameter ( "Configuration to build - Default is 'Debug' (local) or 'Release' (server)" ) ]
43
46
readonly Configuration Configuration = IsLocalBuild ? Configuration . Debug : Configuration . Release ;
44
47
45
48
[ Parameter ] string NugetApiUrl = "https://api.nuget.org/v3/index.json" ; //default
46
49
[ Parameter ] string NugetApiKey ;
47
- [ Parameter ] string GitHubAuthenticationToken ;
50
+ [ Parameter ( Name = GithubTokenSecretName ) ] string GitHubAuthenticationToken ;
48
51
49
52
[ Solution ] readonly Solution Solution ;
50
53
[ GitRepository ] readonly GitRepository GitRepository ;
You can’t perform that action at this time.
0 commit comments