@@ -15,34 +15,34 @@ jobs:
1515 id-token : write
1616 contents : read
1717 steps :
18- - uses : actions/checkout@v4
19-
20- - name : Setup .NET
21- uses : actions/setup-dotnet@v4
22- with :
23- dotnet-version : |
24- 6.0.x
25- 8.0.x
26-
27- - name : Restore dependencies
28- run : dotnet restore CarbonAPI.Client.sln
29-
30- - name : Build
31- run : dotnet build CarbonAPI.Client.sln --no-restore -c Release
32-
33- - name : Test
34- run : dotnet test CarbonAPI.Client.sln --no-build -c Release --verbosity normal
35-
36- - name : Pack
37- if : github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
38- run : dotnet pack Client/Client.csproj -c Release -o out --no-build --no-restore
39-
40- - name : NuGet login (OIDC → temp API key)
18+ - uses : actions/checkout@v4
19+
20+ - name : Setup .NET
21+ uses : actions/setup-dotnet@v4
22+ with :
23+ dotnet-version : |
24+ 6.0.x
25+ 8.0.x
26+
27+ - name : Restore dependencies
28+ run : dotnet restore CarbonAPI.Client.sln
29+
30+ - name : Build
31+ run : dotnet build CarbonAPI.Client.sln --no-restore -c Release
32+
33+ - name : Test
34+ run : dotnet test CarbonAPI.Client.sln --no-build -c Release --verbosity normal
35+
36+ - name : Pack
37+ if : github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
38+ run : dotnet pack Client/Client.csproj -c Release -o out --no-build --no-restore
39+
40+ - name : NuGet login (OIDC → temp API key)
4141 uses : NuGet/login@v1
4242 id : login
4343 with :
4444 user : carbon-bot
45-
46- - name : Push to NuGet
47- if : github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
48- run : dotnet nuget push "out/*.nupkg" --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{steps.login.outputs.NUGET_API_KEY}}
45+
46+ - name : Push to NuGet
47+ if : github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
48+ run : dotnet nuget push "out/*.nupkg" --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{steps.login.outputs.NUGET_API_KEY}}
0 commit comments