55 workflow_dispatch : # Allow running the workflow manually from the GitHub UI
66 push :
77 branches :
8- - ' main' # Run the workflow when pushing to the main branch
8+ - " main" # Run the workflow when pushing to the main branch
99 pull_request :
1010 branches :
11- - ' * ' # Run the workflow for all pull requests
11+ - " * " # Run the workflow for all pull requests
1212 release :
1313 types :
14- - published # Run the workflow when a new GitHub release is published
14+ - published # Run the workflow when a new GitHub release is published
1515
1616env :
1717 DOTNET_SKIP_FIRST_TIME_EXPERIENCE : 1
@@ -26,37 +26,37 @@ jobs:
2626 create_nuget :
2727 runs-on : ubuntu-latest
2828 steps :
29- - uses : actions/checkout@v3
30- with :
31- fetch-depth : 0 # Get all history to allow automatic versioning using MinVer
29+ - uses : actions/checkout@v4
30+ with :
31+ fetch-depth : 0 # Get all history to allow automatic versioning using MinVer
3232
33- # Install the .NET SDK indicated in the global.json file
34- - name : Setup .NET
35- uses : actions/setup-dotnet@v4
33+ # Install the .NET SDK indicated in the global.json file
34+ - name : Setup .NET
35+ uses : actions/setup-dotnet@v4
3636
37- - run : dotnet build ./Packages.sln --configuration Release /p:ContinuousIntegrationBuild=true
37+ - run : dotnet build ./Packages.sln --configuration Release /p:ContinuousIntegrationBuild=true
3838
39- # Create the NuGet package in the folder from the environment variable NuGetDirectory
40- - run : dotnet pack ./Packages.sln --configuration Release --output ${{ env.NuGetDirectory }} /p:ContinuousIntegrationBuild=true
39+ # Create the NuGet package in the folder from the environment variable NuGetDirectory
40+ - run : dotnet pack ./Packages.sln --configuration Release --output ${{ env.NuGetDirectory }} /p:ContinuousIntegrationBuild=true
4141
42- # Publish the NuGet package as an artifact, so they can be used in the following jobs
43- - uses : actions/upload-artifact@v3
44- with :
45- name : nuget
46- if-no-files-found : error
47- retention-days : 7
48- path : ${{ env.NuGetDirectory }}/*.nupkg
42+ # Publish the NuGet package as an artifact, so they can be used in the following jobs
43+ - uses : actions/upload-artifact@v4
44+ with :
45+ name : nuget
46+ if-no-files-found : error
47+ retention-days : 7
48+ path : ${{ env.NuGetDirectory }}/*.nupkg
4949
5050 validate_nuget :
5151 runs-on : ubuntu-latest
52- needs : [ create_nuget ]
52+ needs : [create_nuget]
5353 steps :
5454 # Install the .NET SDK indicated in the global.json file
5555 - name : Setup .NET
5656 uses : actions/setup-dotnet@v4
5757
5858 # Download the NuGet package created in the previous job
59- - uses : actions/download-artifact@v3
59+ - uses : actions/download-artifact@v4
6060 with :
6161 name : nuget
6262 path : ${{ env.NuGetDirectory }}
@@ -74,22 +74,22 @@ jobs:
7474 run_test :
7575 runs-on : ubuntu-latest
7676 steps :
77- - uses : actions/checkout@v3
78- - name : Setup .NET
79- uses : actions/setup-dotnet@v4
80- - name : Run tests
81- run : dotnet test ./Packages.sln --configuration Release
77+ - uses : actions/checkout@v3
78+ - name : Setup .NET
79+ uses : actions/setup-dotnet@v4
80+ - name : Run tests
81+ run : dotnet test ./Packages.sln --configuration Release
8282
8383 deploy :
8484 # Publish only when creating a GitHub Release
8585 # https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository
8686 # You can update this logic if you want to manage releases differently
8787 if : github.event_name == 'release'
8888 runs-on : ubuntu-latest
89- needs : [ validate_nuget, run_test ]
89+ needs : [validate_nuget, run_test]
9090 steps :
9191 # Download the NuGet package created in the previous job
92- - uses : actions/download-artifact@v3
92+ - uses : actions/download-artifact@v4
9393 with :
9494 name : nuget
9595 path : ${{ env.NuGetDirectory }}
0 commit comments