2121 name : 🛠 Build, test and pack
2222 steps :
2323 - name : 🧑💻 Checkout git repository
24- uses : actions/checkout@v4
24+ uses : actions/checkout@v5
2525 with :
2626 fetch-depth : 0
2727 - name : 🏎 Optimize Windows runner
3030 echo "DOTNET_INSTALL_DIR=D:\dotnet" >> $env:GITHUB_ENV
3131 echo "NUGET_PACKAGES=D:\nuget" >> $env:GITHUB_ENV
3232 - name : 🧑🔧 Install .NET SDK
33- uses : actions/setup-dotnet@v4
33+ uses : actions/setup-dotnet@v5
3434 - name : ℹ️ Show .NET info
3535 run : dotnet --info
3636 - name : 💾 Retrieve cached NuGet packages
@@ -47,13 +47,13 @@ jobs:
4747 - name : 🧪 Run tests
4848 run : dotnet test --no-build
4949 - name : 📤 Upload received files from failing tests
50- uses : actions/upload-artifact@v4
50+ uses : actions/upload-artifact@v5
5151 if : failure()
5252 with :
5353 name : Received-${{ runner.os }}
5454 path : " **/*.received.*"
5555 - name : 📤 Upload test results
56- uses : actions/upload-artifact@v4
56+ uses : actions/upload-artifact@v5
5757 if : always()
5858 with :
5959 name : TestResults-${{ runner.os }}.trx
6767 reporter : dotnet-trx
6868 - name : 📤 Upload coverage report
6969 if : matrix.os == 'ubuntu-latest'
70- uses : actions/upload-artifact@v4
70+ uses : actions/upload-artifact@v5
7171 with :
7272 name : Coverage Report
7373 path : coverage
9191 run : dotnet pack --no-build --output .
9292 - name : 📤 Upload NuGet package artifact
9393 if : matrix.os == 'ubuntu-latest'
94- uses : actions/upload-artifact@v4
94+ uses : actions/upload-artifact@v5
9595 with :
9696 name : NuGet package
9797 path : " *.nupkg"
@@ -109,7 +109,7 @@ jobs:
109109 git tag --list ${{ github.ref_name }} --format='%(contents)' > ReleaseNotes.md
110110 - name : 📤 Upload release notes
111111 if : matrix.os == 'ubuntu-latest' && startsWith(github.ref, 'refs/tags/')
112- uses : actions/upload-artifact@v4
112+ uses : actions/upload-artifact@v5
113113 with :
114114 name : Release Notes
115115 path : ReleaseNotes.md
@@ -123,11 +123,11 @@ jobs:
123123 name : 🐿 Publish
124124 steps :
125125 - name : 📥 Download NuGet package artifact
126- uses : actions/download-artifact@v4
126+ uses : actions/download-artifact@v5
127127 with :
128128 name : NuGet package
129129 - name : 📥 Download release notes artifact
130- uses : actions/download-artifact@v4
130+ uses : actions/download-artifact@v5
131131 with :
132132 name : Release Notes
133133 - name : 🚢 Create GitHub Release
@@ -141,6 +141,6 @@ jobs:
141141 uses : NuGet/login@v1
142142 id : nuget-login
143143 with :
144- user : ' 0xced'
144+ user : " 0xced"
145145 - name : 🚀 Publish NuGet package on nuget.org
146146 run : dotnet nuget push "*.nupkg" --source https://api.nuget.org/v3/index.json --api-key "${{ steps.nuget-login.outputs.NUGET_API_KEY }}"
0 commit comments