@@ -2,11 +2,11 @@ name: Build and Publish
22
33on :
44 push :
5- branches : [ master, 2.X ]
5+ branches : [ master, main ]
66 tags :
77 - ' *'
88 pull_request :
9- branches : [ master, 2.X ]
9+ branches : [ master, main ]
1010 workflow_dispatch :
1111
1212env :
@@ -25,31 +25,28 @@ jobs:
2525 shell : pwsh
2626
2727 steps :
28- - uses : actions/checkout@v2
28+ - uses : actions/checkout@v5
2929 with :
3030 fetch-depth : 0
3131
3232 - name : Setup .NET Core SDK (3.1.x)
33- uses : actions/setup-dotnet@v1.9.0
33+ uses : actions/setup-dotnet@v5
3434 with :
35- # Optional SDK version(s) to use. If not provided, will install global.json version when available. Examples: 2.2.104, 3.1, 3.1.x
3635 dotnet-version : 3.1.x
3736
38- - name : Setup .NET Core SDK (5.0.x )
39- uses : actions/setup-dotnet@v1.9.0
37+ - name : Setup .NET Core SDK (5.0)
38+ uses : actions/setup-dotnet@v5
4039 with :
41- # Optional SDK version(s) to use. If not provided, will install global.json version when available. Examples: 2.2.104, 3.1, 3.1.x
4240 dotnet-version : 5.0.x
4341
44- - name : Setup .NET Core SDK (6.0.x )
45- uses : actions/setup-dotnet@v1.9.0
42+ - name : Setup .NET Core SDK (9.0 )
43+ uses : actions/setup-dotnet@v5
4644 with :
47- # Optional SDK version(s) to use. If not provided, will install global.json version when available. Examples: 2.2.104, 3.1, 3.1.x
48- dotnet-version : 6.0.x
45+ dotnet-version : 9.0.x
4946
5047 # Required for C#10 features.
5148 - name : Setup Node.js
52- uses : actions/setup-node@v2
49+ uses : actions/setup-node@v6
5350 with :
5451 node-version : ' 14'
5552
6764 dotnet test ./Source/Reloaded.Messaging.Tests/Reloaded.Messaging.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput="../../$env:CODE_COVERAGE_PATH" --% /p:Exclude=\"[xunit.*]*\"
6865
6966 - name : Codecov
70- # You may pin to the exact commit or the version.
71- # uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b
72- uses : codecov/codecov-action@v2.1.0
67+ uses : codecov/codecov-action@v5
7368 with :
74- # Comma-separated list of files to upload
7569 files : ${{ env.CODE_COVERAGE_PATH }}
7670
7771 - name : Create Changelog (on Tag)
@@ -86,31 +80,25 @@ jobs:
8680 }
8781
8882 - name : Upload NuGet Package Artifact
89- uses : actions/upload-artifact@v2.2.4
83+ uses : actions/upload-artifact@v4
9084 with :
91- # Artifact name
9285 name : NuGet Packages
93- # A file, directory or wildcard pattern that describes what to upload
9486 path : |
9587 ${{ env.NUPKG_GLOB }}
9688
9789 - name : Upload Changelog Artifact
98- uses : actions/upload-artifact@v2.2.4
90+ uses : actions/upload-artifact@v4
9991 with :
100- # Artifact name
10192 name : Changelog
102- # A file, directory or wildcard pattern that describes what to upload
10393 path : ${{ env.CHANGELOG_PATH }}
10494 retention-days : 0
10595
10696
10797 - name : Upload to GitHub Releases
108- uses : softprops/action-gh-release@v0.1.14
98+ uses : softprops/action-gh-release@v2
10999 if : env.IS_RELEASE == 'true'
110100 with :
111- # Path to load note-worthy description of changes in release from
112101 body_path : ${{ env.CHANGELOG_PATH }}
113- # Newline-delimited list of path globs for asset files to upload
114102 files : |
115103 ${{ env.NUPKG_GLOB }}
116104 ${{ env.CHANGELOG_PATH }}
0 commit comments