File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 shell : bash
2424 run : |
2525 dotnet tool restore
26- dotnet cake
26+ dotnet make
Original file line number Diff line number Diff line change 3434 shell : bash
3535 run : |
3636 dotnet tool restore
37- dotnet cake --target="publish" \
38- --nuget-key="${{secrets.NUGET_API_KEY}}" \
39- --github-key="${{secrets.GITHUB_TOKEN}}"
37+ dotnet make publish --nuget-key="${{secrets.NUGET_API_KEY}}"
Original file line number Diff line number Diff line change 1+ #: sdk Cake . Sdk@6.2 .0
2+
13var target = Argument ( "target" , "Default" ) ;
24var configuration = Argument ( "configuration" , "Release" ) ;
35
4749 . IsDependentOn ( "Package" )
4850 . Does ( context =>
4951{
50- var apiKey = Argument < string > ( "nuget-key" , null ) ;
52+ var apiKey = Argument < string ? > ( "nuget-key" , null ) ;
5153 if ( string . IsNullOrWhiteSpace ( apiKey ) ) {
5254 throw new CakeException ( "No NuGet API key was provided." ) ;
5355 }
5456
55- // Publish to GitHub Packages
5657 foreach ( var file in context . GetFiles ( "./.artifacts/*.nupkg" ) )
5758 {
5859 context . Information ( "Publishing {0}..." , file . GetFilename ( ) . FullPath ) ;
7677////////////////////////////////////////////////////////////////
7778// Execution
7879
79- RunTarget ( target )
80+ RunTarget ( target ) ;
Original file line number Diff line number Diff line change 66 "version" : " 5.1.0" ,
77 "commands" : [
88 " dotnet-cake"
9- ]
9+ ],
10+ "rollForward" : false
11+ },
12+ "make" : {
13+ "version" : " 0.11.0" ,
14+ "commands" : [
15+ " dotnet-make"
16+ ],
17+ "rollForward" : false
1018 }
1119 }
1220}
You can’t perform that action at this time.
0 commit comments