Skip to content

Commit 07b00e5

Browse files
committed
5th attempt
1 parent 011d4a8 commit 07b00e5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ jobs:
1212
with:
1313
dotnet-version: 6.0.x
1414
- 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
1816

1917

ScipDotnet/ScipIndexer.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,21 @@ public ScipIndexer(ILogger<ScipIndexer> logger)
2020

2121
private ILogger<ScipIndexer> Logger { get; }
2222

23-
public void Restore(IndexCommandOptions options)
23+
private void Restore(IndexCommandOptions options)
2424
{
25+
var arguments = options.ProjectsFile.FullName.EndsWith(".sln")
26+
? $"restore {options.ProjectsFile.FullName}"
27+
: "restore";
2528
var process = new Process()
2629
{
2730
StartInfo = new ProcessStartInfo()
2831
{
2932
WorkingDirectory = options.WorkingDirectory.FullName,
3033
FileName = "dotnet",
31-
Arguments = options.ProjectsFile.FullName.EndsWith(".sln")
32-
? $"restore {options.ProjectsFile.FullName}"
33-
: "restore"
34+
Arguments = arguments
3435
}
3536
};
37+
options.Logger.LogInformation("$ dotnet {Arguments}", arguments);
3638
process.Start();
3739
}
3840

0 commit comments

Comments
 (0)