@@ -12,35 +12,43 @@ jobs:
1212 runs-on : ubuntu-latest
1313
1414 steps :
15- - uses : actions/checkout@v4
15+ - uses : actions/checkout@v5
16+
1617 - name : Setup .NET
17- uses : actions/setup-dotnet@v4
18+ uses : actions/setup-dotnet@v5
1819 with :
1920 dotnet-version : |
2021 6.0.x
2122 8.0.x
2223 9.0.x
24+
2325 - name : Install dependencies
2426 run : dotnet restore
27+
2528 - name : Check vulnerable NuGet packages
2629 uses : elmahio/github-check-vulnerable-nuget-packages-action@v2
2730 with :
2831 projects : src/Elmah.Io.Heartbeats.Hangfire/Elmah.Io.Heartbeats.Hangfire.csproj
32+
2933 - name : Build
3034 run : dotnet build --configuration Release --no-restore
35+
3136 - name : Test
3237 run : dotnet test --configuration Release --no-build --verbosity normal
38+
3339 - name : Pack
34- run : dotnet pack --configuration Release src/Elmah.Io.Heartbeats.Hangfire/Elmah.Io.Heartbeats.Hangfire.csproj /p:Version=5.3.${{ github.run_number }}-pre
40+ run : dotnet pack --configuration Release src/Elmah.Io.Heartbeats.Hangfire/Elmah.Io.Heartbeats.Hangfire.csproj /p:Version=5.3.${{ github.run_number }}
41+
3542 - name : Install dotnet-validate
36- run : dotnet tool install --global dotnet-validate --version 0.0.1-preview.304
43+ run : dotnet tool install --global dotnet-validate --version 0.0.1-preview.537
44+
3745 - name : Validate
38- run : dotnet-validate package local src/Elmah.Io.Heartbeats.Hangfire/bin/Release/Elmah.Io.Heartbeats.Hangfire.5.3.${{ github.run_number }}-pre.nupkg
46+ run : dotnet-validate package local src/Elmah.Io.Heartbeats.Hangfire/bin/Release/Elmah.Io.Heartbeats.Hangfire.5.3.${{ github.run_number }}.nupkg
47+
3948 - name : Push to nuget.org
40- run : dotnet nuget push src/Elmah.Io.Heartbeats.Hangfire/bin/Release/Elmah.Io.Heartbeats.Hangfire.5.3.${{ github.run_number }}-pre .nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
49+ run : dotnet nuget push src/Elmah.Io.Heartbeats.Hangfire/bin/Release/Elmah.Io.Heartbeats.Hangfire.5.3.${{ github.run_number }}.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
4150 if : ${{ github.event_name == 'push' }}
4251
43-
4452 - name : Refresh Bugster
4553 shell : pwsh
4654 env :
0 commit comments