File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 12
12
with :
13
13
dotnet-version : 6.0.x
14
14
- run : dotnet pack
15
- - run : dotnet nuget push 'ScipDotnet/bin/Debug/*.nupkg' -s 'https://api.nuget.org/v3/index.json' --api-key '$NUGET_APIKEY' --skip-duplicate
16
- env :
17
- NUGET_APIKEY : ${{ secrets.NUGET_APIKEY }}
15
+ - run : dotnet nuget push 'ScipDotnet/bin/Debug/*.nupkg' --source 'nuget.org' --api-key '${{ secrets.NUGET_APIKEY }}' --skip-duplicate
18
16
19
17
Original file line number Diff line number Diff line change @@ -20,19 +20,21 @@ public ScipIndexer(ILogger<ScipIndexer> logger)
20
20
21
21
private ILogger < ScipIndexer > Logger { get ; }
22
22
23
- public void Restore ( IndexCommandOptions options )
23
+ private void Restore ( IndexCommandOptions options )
24
24
{
25
+ var arguments = options . ProjectsFile . FullName . EndsWith ( ".sln" )
26
+ ? $ "restore { options . ProjectsFile . FullName } "
27
+ : "restore" ;
25
28
var process = new Process ( )
26
29
{
27
30
StartInfo = new ProcessStartInfo ( )
28
31
{
29
32
WorkingDirectory = options . WorkingDirectory . FullName ,
30
33
FileName = "dotnet" ,
31
- Arguments = options . ProjectsFile . FullName . EndsWith ( ".sln" )
32
- ? $ "restore { options . ProjectsFile . FullName } "
33
- : "restore"
34
+ Arguments = arguments
34
35
}
35
36
} ;
37
+ options . Logger . LogInformation ( "$ dotnet {Arguments}" , arguments ) ;
36
38
process . Start ( ) ;
37
39
}
38
40
You can’t perform that action at this time.
0 commit comments